ASoC: SOF: Rename sof_arch_ops to dsp_arch_ops
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 16 Sep 2021 13:03:08 +0000 (16:03 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 17 Sep 2021 12:17:47 +0000 (13:17 +0100)
From the name sof_arch_ops one can not decipher that these ops are DSP
architecture ops.
Rename it to dsp_arch_ops and change also the macro to retrieve the DSP
architecture specific ops as well.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210916130308.7969-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8.c
sound/soc/sof/imx/imx8m.c
sound/soc/sof/intel/apl.c
sound/soc/sof/intel/bdw.c
sound/soc/sof/intel/byt.c
sound/soc/sof/intel/cnl.c
sound/soc/sof/intel/icl.c
sound/soc/sof/intel/pci-tng.c
sound/soc/sof/intel/tgl.c
sound/soc/sof/sof-priv.h
sound/soc/sof/xtensa/core.c

index 199ddf706fc45bee1f89bba0be19d9fb5581c386..b75608ef33a81fb4838c7c930901eeb2962e9e76 100644 (file)
@@ -439,7 +439,7 @@ struct snd_sof_dsp_ops sof_imx8_ops = {
        .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* Firmware ops */
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 
        /* DAI drivers */
        .drv = imx8_dai,
@@ -486,7 +486,7 @@ struct snd_sof_dsp_ops sof_imx8x_ops = {
        .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* Firmware ops */
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 
        /* DAI drivers */
        .drv = imx8_dai,
index 0335175e8f24f9c965c5eef3b59c2559bdf40aef..969117e5476747a3aa7d00401f9ec41eb8a57856 100644 (file)
@@ -302,7 +302,7 @@ struct snd_sof_dsp_ops sof_imx8m_ops = {
        .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* Firmware ops */
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 
        /* DAI drivers */
        .drv = imx8m_dai,
index 0da6f3528269fa52eebc4edc03c6573f2339de42..e6a1f6532547fc869717b59a460b2abc7d642ff9 100644 (file)
@@ -126,7 +126,7 @@ const struct snd_sof_dsp_ops sof_apl_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 EXPORT_SYMBOL_NS(sof_apl_ops, SND_SOC_SOF_INTEL_HDA_COMMON);
 
index a8063e9b3e00b367db1b5a94f906c0a8ff9910d2..d092754177493426f96ab9805d159ba4ef8b93ad 100644 (file)
@@ -658,7 +658,7 @@ static const struct snd_sof_dsp_ops sof_bdw_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_BATCH,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 
 static const struct sof_intel_dsp_desc bdw_chip_info = {
index d4e86f847ae634968b140737c790b30a111bd122..8f60c72fee7e93e8d6fd86bb522b9b6e92f3791b 100644 (file)
@@ -276,7 +276,7 @@ static const struct snd_sof_dsp_ops sof_byt_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_BATCH,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 
 static const struct sof_intel_dsp_desc byt_chip_info = {
@@ -355,7 +355,7 @@ static const struct snd_sof_dsp_ops sof_cht_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_BATCH,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 
 static const struct sof_intel_dsp_desc cht_chip_info = {
index eeb95cbb77a1d799cb521e5a0c0993399e135844..430a268e6b26b6a78ceb927ac4599678a95abe5b 100644 (file)
@@ -331,7 +331,7 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 EXPORT_SYMBOL_NS(sof_cnl_ops, SND_SOC_SOF_INTEL_HDA_COMMON);
 
index f5e370c13fed800ed2849135c780227b6431c87d..38a40c03c9da99036ec7e849e5340b8510065f28 100644 (file)
@@ -126,7 +126,7 @@ const struct snd_sof_dsp_ops sof_icl_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 EXPORT_SYMBOL_NS(sof_icl_ops, SND_SOC_SOF_INTEL_HDA_COMMON);
 
index ccfb97ccd5037da8b39ca6cf4efe783e0d962a01..3d6d013844d7cac1bdaefdc5ad66f4f611975819 100644 (file)
@@ -188,7 +188,7 @@ const struct snd_sof_dsp_ops sof_tng_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_BATCH,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 
 const struct sof_intel_dsp_desc tng_chip_info = {
index e91ea80f766f25be97079391bc16f4ef8120f069..664a11aaada2504549ee0db76fd5565cbd907e27 100644 (file)
@@ -121,7 +121,7 @@ const struct snd_sof_dsp_ops sof_tgl_ops = {
                        SNDRV_PCM_INFO_PAUSE |
                        SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
 
-       .arch_ops = &sof_xtensa_arch_ops,
+       .dsp_arch_ops = &sof_xtensa_arch_ops,
 };
 EXPORT_SYMBOL_NS(sof_tgl_ops, SND_SOC_SOF_INTEL_HDA_COMMON);
 
index aa9db448e0a3004ccd1a37db1b847afa14dadd38..9b1bdba15c74039d7b90219e0cfe9c2543ba5b19 100644 (file)
@@ -282,17 +282,17 @@ struct snd_sof_dsp_ops {
        /* ALSA HW info flags, will be stored in snd_pcm_runtime.hw.info */
        u32 hw_info;
 
-       const struct sof_arch_ops *arch_ops;
+       const struct dsp_arch_ops *dsp_arch_ops;
 };
 
 /* DSP architecture specific callbacks for oops and stack dumps */
-struct sof_arch_ops {
+struct dsp_arch_ops {
        void (*dsp_oops)(struct snd_sof_dev *sdev, void *oops);
        void (*dsp_stack)(struct snd_sof_dev *sdev, void *oops,
                          u32 *stack, u32 stack_words);
 };
 
-#define sof_arch_ops(sdev) ((sdev)->pdata->desc->ops->arch_ops)
+#define sof_dsp_arch_ops(sdev) ((sdev)->pdata->desc->ops->dsp_arch_ops)
 
 /* DSP device HW descriptor mapping between bus ID and ops */
 struct sof_ops_table {
@@ -544,16 +544,16 @@ int snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev,
 static inline void sof_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack,
                             u32 stack_words)
 {
-               sof_arch_ops(sdev)->dsp_stack(sdev, oops, stack, stack_words);
+               sof_dsp_arch_ops(sdev)->dsp_stack(sdev, oops, stack, stack_words);
 }
 
 static inline void sof_oops(struct snd_sof_dev *sdev, void *oops)
 {
-       if (sof_arch_ops(sdev)->dsp_oops)
-               sof_arch_ops(sdev)->dsp_oops(sdev, oops);
+       if (sof_dsp_arch_ops(sdev)->dsp_oops)
+               sof_dsp_arch_ops(sdev)->dsp_oops(sdev, oops);
 }
 
-extern const struct sof_arch_ops sof_xtensa_arch_ops;
+extern const struct dsp_arch_ops sof_xtensa_arch_ops;
 
 /*
  * Utilities
index bbb9a2282ed9ea4f10d0fcc028ae9447b6cced04..85f1eb1d20d2f0db53b19f6e6eb24be0bde3a744 100644 (file)
@@ -128,7 +128,7 @@ static void xtensa_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack,
        }
 }
 
-const struct sof_arch_ops sof_xtensa_arch_ops = {
+const struct dsp_arch_ops sof_xtensa_arch_ops = {
        .dsp_oops = xtensa_dsp_oops,
        .dsp_stack = xtensa_stack,
 };