aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/sof_sdw_cs_amp.c
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2024-05-09 11:34:14 -0500
committerMark Brown <broonie@kernel.org>2024-05-10 07:11:47 +0100
commit01c266af92f4d24d44939e7d21c36e898caaa18f (patch)
tree41e0e3d48bac686a8d093805242788803584ad23 /sound/soc/intel/boards/sof_sdw_cs_amp.c
parent1628e1c8f6f1446460fc33a06f52e5ce52ac587a (diff)
downloadlinux-01c266af92f4d24d44939e7d21c36e898caaa18f.tar.gz
linux-01c266af92f4d24d44939e7d21c36e898caaa18f.tar.bz2
linux-01c266af92f4d24d44939e7d21c36e898caaa18f.zip
ASoC: Intel: sof_sdw: use generic name for controls/widgets
Some controls and widgets have exactly the same items. Rename them to be generic. This is a preparation for further cleanup. No function change. Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240509163418.67746-15-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/sof_sdw_cs_amp.c')
-rw-r--r--sound/soc/intel/boards/sof_sdw_cs_amp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/intel/boards/sof_sdw_cs_amp.c b/sound/soc/intel/boards/sof_sdw_cs_amp.c
index 3538d3c752b7..e15a4753f103 100644
--- a/sound/soc/intel/boards/sof_sdw_cs_amp.c
+++ b/sound/soc/intel/boards/sof_sdw_cs_amp.c
@@ -14,7 +14,7 @@
#define CODEC_NAME_SIZE 8
-static const struct snd_soc_dapm_widget sof_widgets[] = {
+static const struct snd_soc_dapm_widget generic_spk_widgets[] = {
SND_SOC_DAPM_SPK("Speaker", NULL),
};
@@ -35,8 +35,8 @@ int cs_spk_rtd_init(struct snd_soc_pcm_runtime *rtd)
if (!card->components)
return -ENOMEM;
- ret = snd_soc_dapm_new_controls(&card->dapm, sof_widgets,
- ARRAY_SIZE(sof_widgets));
+ ret = snd_soc_dapm_new_controls(&card->dapm, generic_spk_widgets,
+ ARRAY_SIZE(generic_spk_widgets));
if (ret) {
dev_err(card->dev, "widgets addition failed: %d\n", ret);
return ret;