summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8995.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-10-26 19:02:46 +0300
committerMark Brown <broonie@kernel.org>2023-10-26 19:02:46 +0300
commit11817547b7a2cfad46e17e772a9002dc3e60f747 (patch)
treecb1b6e7be22deb7fd8cf3feff33739e852bb9330 /sound/soc/codecs/wm8995.c
parent926f192f005fe957ea1bfe4635af10219ba363a2 (diff)
parentf82eb06a40c86c9a82537e956de401d497203d3a (diff)
downloadlinux-11817547b7a2cfad46e17e772a9002dc3e60f747.tar.xz
ASoC: fix widget name comparisons (consider DAI name
Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>: Some codec drivers compare widget names with strcmp, ignoring the component name prefix. If prefix is used, the comparisons start failing. Except Qualcomm lpass-rx-macro, none of the patches were tested on hardware.
Diffstat (limited to 'sound/soc/codecs/wm8995.c')
-rw-r--r--sound/soc/codecs/wm8995.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 4ffa1896faab..59ef2ef8ce00 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -541,7 +541,7 @@ static int check_clk_sys(struct snd_soc_dapm_widget *source,
clk = "AIF2CLK";
else
clk = "AIF1CLK";
- return !strcmp(source->name, clk);
+ return !snd_soc_dapm_widget_name_cmp(source, clk);
}
static int wm8995_put_class_w(struct snd_kcontrol *kcontrol,