diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-10-23 11:54:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-26 13:15:46 +0200 |
commit | e54db8826f48c9ca52f2abd108d6e030ff20cae5 (patch) | |
tree | 822231f3cfbb91b9100e2bcae9f3b59b6a2a3917 /sound/soc/codecs/wm8962.c | |
parent | ASoC: codecs: wcd9335: Handle component name prefix (diff) | |
download | linux-e54db8826f48c9ca52f2abd108d6e030ff20cae5.tar.xz linux-e54db8826f48c9ca52f2abd108d6e030ff20cae5.zip |
ASoC: codecs: wm8962: Handle component name prefix
Use snd_soc_dapm_widget_name_cmp() helper when comparing widget names,
to include also the component's name prefix.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231023095428.166563-10-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 83ce5dbecc45..fb90ae6a8a34 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -1854,10 +1854,10 @@ static int tp_event(struct snd_soc_dapm_widget *w, reg = WM8962_ADDITIONAL_CONTROL_4; - if (!strcmp(w->name, "TEMP_HP")) { + if (!snd_soc_dapm_widget_name_cmp(w, "TEMP_HP")) { mask = WM8962_TEMP_ENA_HP_MASK; val = WM8962_TEMP_ENA_HP; - } else if (!strcmp(w->name, "TEMP_SPK")) { + } else if (!snd_soc_dapm_widget_name_cmp(w, "TEMP_SPK")) { mask = WM8962_TEMP_ENA_SPK_MASK; val = WM8962_TEMP_ENA_SPK; } else { |