summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJiaxin Yu <jiaxin.yu@mediatek.com>2022-08-20 10:19:25 +0300
committerMark Brown <broonie@kernel.org>2022-08-22 16:05:18 +0300
commit221ab1f0bf46236cf1a3fef5298ff5894acfb0c5 (patch)
treed0a15b0d6649e20d64a6e04ecdb25bdb307536ca /sound
parentecdb10df7e0d83bfd12fb8f71e28ea4753e3716a (diff)
downloadlinux-221ab1f0bf46236cf1a3fef5298ff5894acfb0c5.tar.xz
ASoC: mediatek: mt8186: fix DMIC record noise
When the first DMIC recording is power down, mtkaif_dmic will be reset. This will cause configuration error in the second DMIC recording. So do not reset mtkaif_dmic except in "MTKAIF_DMIC Switch" kcontrol. Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com> Link: https://lore.kernel.org/r/20220820071925.13557-1-jiaxin.yu@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/mediatek/mt8186/mt8186-dai-adda.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/mediatek/mt8186/mt8186-dai-adda.c b/sound/soc/mediatek/mt8186/mt8186-dai-adda.c
index 266704556f37..094402470dc2 100644
--- a/sound/soc/mediatek/mt8186/mt8186-dai-adda.c
+++ b/sound/soc/mediatek/mt8186/mt8186-dai-adda.c
@@ -271,9 +271,6 @@ static int mtk_adda_ul_event(struct snd_soc_dapm_widget *w,
/* should delayed 1/fs(smallest is 8k) = 125us before afe off */
usleep_range(125, 135);
mt8186_afe_gpio_request(afe->dev, false, MT8186_DAI_ADDA, 1);
-
- /* reset dmic */
- afe_priv->mtkaif_dmic = 0;
break;
default:
break;