summaryrefslogtreecommitdiff
path: root/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-10-31 11:01:25 +0300
committerTakashi Iwai <tiwai@suse.de>2023-10-31 11:01:25 +0300
commit2dc15ff73b6a7b47db0e848498cb5b0479e781c6 (patch)
treed93457787d3349dadcbbf7691650ebdb1d0cd883 /sound/soc/mediatek/mt8192/mt8192-dai-adda.c
parentc468b5dd759ede754b23cbc9c50b048a781d4217 (diff)
parentbdb7e1922052b1e7fcce63e2cfa195958ff97e05 (diff)
downloadlinux-2dc15ff73b6a7b47db0e848498cb5b0479e781c6.tar.xz
Merge tag 'asoc-v6.7-2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Updates for v6.7 More updates for v6,7 following the early merge request: - Fixes for handling of component name prefixing when name prefixes are used by the machine driver. - Fixes for noise when stopping some Sounwire CODECs. - Support for AMD ACP 6.3 and 7.0, Awinc AW88399, more Intel platforms and more Qualcomm SC7180 platforms.
Diffstat (limited to 'sound/soc/mediatek/mt8192/mt8192-dai-adda.c')
-rw-r--r--sound/soc/mediatek/mt8192/mt8192-dai-adda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
index 4919535e2759..36d33032a37a 100644
--- a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
+++ b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
@@ -435,7 +435,7 @@ static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
regmap_write(afe->regmap, AFE_ADDA6_MTKAIF_CFG0,
0x00010000);
- if (strcmp(w->name, "ADDA_MTKAIF_CFG") == 0 &&
+ if (snd_soc_dapm_widget_name_cmp(w, "ADDA_MTKAIF_CFG") == 0 &&
(afe_priv->mtkaif_chosen_phase[0] < 0 ||
afe_priv->mtkaif_chosen_phase[1] < 0)) {
dev_warn(afe->dev,
@@ -444,7 +444,7 @@ static int mtk_adda_mtkaif_cfg_event(struct snd_soc_dapm_widget *w,
afe_priv->mtkaif_chosen_phase[0],
afe_priv->mtkaif_chosen_phase[1]);
break;
- } else if (strcmp(w->name, "ADDA6_MTKAIF_CFG") == 0 &&
+ } else if (snd_soc_dapm_widget_name_cmp(w, "ADDA6_MTKAIF_CFG") == 0 &&
afe_priv->mtkaif_chosen_phase[2] < 0) {
dev_warn(afe->dev,
"%s(), mtkaif_chosen_phase[2]:%d\n",