Skip to content

Commit e13b63c

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wm8994.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int check_clk_sys(struct snd_soc_dapm_widget *source,
262262
else
263263
clk = "AIF1CLK";
264264

265-
return strcmp(source->name, clk) == 0;
265+
return snd_soc_dapm_widget_name_cmp(source, clk) == 0;
266266
}
267267

268268
static const char *sidetone_hpf_text[] = {

0 commit comments

Comments
 (0)