diff options
author | Jiaxin Yu <jiaxin.yu@mediatek.com> | 2022-08-20 15:19:25 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-22 14:05:18 +0100 |
commit | 221ab1f0bf46236cf1a3fef5298ff5894acfb0c5 (patch) | |
tree | d0a15b0d6649e20d64a6e04ecdb25bdb307536ca /sound | |
parent | ecdb10df7e0d83bfd12fb8f71e28ea4753e3716a (diff) |
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.c | 3 |
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; |