Skip to content

Commit 343b625

Browse files
krzkbroonie
authored andcommitted
ASoC: codecs: wm8995: 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-12-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e13b63c commit 343b625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wm8995.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static int check_clk_sys(struct snd_soc_dapm_widget *source,
541541
clk = "AIF2CLK";
542542
else
543543
clk = "AIF1CLK";
544-
return !strcmp(source->name, clk);
544+
return !snd_soc_dapm_widget_name_cmp(source, clk);
545545
}
546546

547547
static int wm8995_put_class_w(struct snd_kcontrol *kcontrol,

0 commit comments

Comments
 (0)