ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset
authorEugen Hristev <eugen.hristev@collabora.com>
Fri, 29 Dec 2023 11:43:42 +0000 (13:43 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 Dec 2023 17:08:18 +0000 (17:08 +0000)
AUD_PAD_TOP widget's correct register is AFE_AUD_PAD_TOP , and not zero.
Having a zero as register, it would mean that the `snd_soc_dapm_new_widgets`
would try to read the register at offset zero when trying to get the power
status of this widget, which is incorrect.

Fixes: b65c466220b3 ("ASoC: mediatek: mt8186: support adda in platform driver")
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Link: https://lore.kernel.org/r/20231229114342.195867-1-eugen.hristev@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8186/mt8186-dai-adda.c

index 85ae3f76d9510d5f7514888c00db6b98e4461ca9..ad6d4b5cf697965b308d42010a34f3ecdc5d96a8 100644 (file)
@@ -499,7 +499,7 @@ static const struct snd_soc_dapm_widget mtk_dai_adda_widgets[] = {
                              SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
 
        SND_SOC_DAPM_SUPPLY_S("AUD_PAD_TOP", SUPPLY_SEQ_ADDA_AUD_PAD_TOP,
-                             0, 0, 0,
+                             AFE_AUD_PAD_TOP, RG_RX_FIFO_ON_SFT, 0,
                              mtk_adda_pad_top_event,
                              SND_SOC_DAPM_PRE_PMU),
        SND_SOC_DAPM_SUPPLY_S("ADDA_MTKAIF_CFG", SUPPLY_SEQ_ADDA_MTKAIF_CFG,