diff options
author | Mark Brown <broonie@kernel.org> | 2023-10-26 19:02:46 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-26 19:02:46 +0300 |
commit | 11817547b7a2cfad46e17e772a9002dc3e60f747 (patch) | |
tree | cb1b6e7be22deb7fd8cf3feff33739e852bb9330 /sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | |
parent | 926f192f005fe957ea1bfe4635af10219ba363a2 (diff) | |
parent | f82eb06a40c86c9a82537e956de401d497203d3a (diff) | |
download | linux-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/mediatek/mt8188/mt8188-dai-etdm.c')
-rw-r--r-- | sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c index 16440dd0a89c..2a48f5fd6826 100644 --- a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c +++ b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c @@ -576,13 +576,13 @@ static int mtk_apll_event(struct snd_soc_dapm_widget *w, switch (event) { case SND_SOC_DAPM_PRE_PMU: - if (strcmp(w->name, APLL1_W_NAME) == 0) + if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0) mt8188_apll1_enable(afe); else mt8188_apll2_enable(afe); break; case SND_SOC_DAPM_POST_PMD: - if (strcmp(w->name, APLL1_W_NAME) == 0) + if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0) mt8188_apll1_disable(afe); else mt8188_apll2_disable(afe); |