ASoC: SOF: Rename sof_arch_ops to dsp_arch_ops
Peter Ujfalusi
maintainerPATCH 1/1 ASoC: SOF: Rename sof_arch_ops to dsp_arch_ops
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.
--- sound/soc/sof/imx/imx8.c | 4 ++-- sound/soc/sof/imx/imx8m.c | 2 +- sound/soc/sof/intel/apl.c | 2 +- sound/soc/sof/intel/bdw.c | 2 +- sound/soc/sof/intel/byt.c | 4 ++-- sound/soc/sof/intel/cnl.c | 2 +- sound/soc/sof/intel/icl.c | 2 +- sound/soc/sof/intel/pci-tng.c | 2 +- sound/soc/sof/intel/tgl.c | 2 +- sound/soc/sof/sof-priv.h | 14 +++++++------- sound/soc/sof/xtensa/core.c | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-)
sound/soc/sof/imx/imx8.c +2 -2
@@ -441,7 +441,7 @@ struct snd_sof_dsp_ops sof_imx8_ops = { .dbg_dump = imx8_dump,/* Firmware ops */ - .arch_ops = &sof_xtensa_arch_ops, + .dsp_arch_ops = &sof_xtensa_arch_ops,/* DAI drivers */ .drv = imx8_dai,
@@ -490,7 +490,7 @@ struct snd_sof_dsp_ops sof_imx8x_ops = { .dbg_dump = imx8_dump,/* Firmware ops */ - .arch_ops = &sof_xtensa_arch_ops, + .dsp_arch_ops = &sof_xtensa_arch_ops,/* DAI drivers */ .drv = imx8_dai,
sound/soc/sof/imx/imx8m.c +1 -1
@@ -293,7 +293,7 @@ struct snd_sof_dsp_ops sof_imx8m_ops = { .dbg_dump = imx8_dump,/* Firmware ops */ - .arch_ops = &sof_xtensa_arch_ops, + .dsp_arch_ops = &sof_xtensa_arch_ops,/* DAI drivers */ .drv = imx8m_dai,
sound/soc/sof/intel/apl.c +1 -1
@@ -125,7 +125,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 );
sound/soc/sof/intel/bdw.c +1 -1
@@ -657,7 +657,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 = {
sound/soc/sof/intel/byt.c +2 -2
@@ -275,7 +275,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 = {
@@ -353,7 +353,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 = {
sound/soc/sof/intel/cnl.c +1 -1
@@ -330,7 +330,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 );
sound/soc/sof/intel/icl.c +1 -1
@@ -125,7 +125,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 );
sound/soc/sof/intel/pci-tng.c +1 -1
@@ -187,7 +187,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 = {
sound/soc/sof/intel/tgl.c +1 -1
@@ -120,7 +120,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 );
sound/soc/sof/sof-priv.h +7 -7
@@ -268,17 +268,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 {
@@ -551,16 +551,16 @@ extern struct snd_compress_ops sof_compressed_ops;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
sound/soc/sof/xtensa/core.c +1 -1
@@ -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, };
Signature · 1 line
2.33.0
Mark Brown
maintainerQuoted 6 lines · Peter Ujfalusi
From the name
sof_arch_opsone can not decipher that these ops are DSP architecture ops.
Rename it todsp_arch_opsand change also the macro to retrieve the DSP architecture specific ops as well.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: Rename sof_arch_ops to dsp_arch_ops
commit: 0ed66cb7b6d38f0bab061466c1aa0e9f3db45e93
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark