ASoC: mediatek: mt8186: fix DMIC record noise
authorJiaxin Yu <jiaxin.yu@mediatek.com>
Sat, 20 Aug 2022 07:19:25 +0000 (15:19 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 22 Aug 2022 13:05:18 +0000 (14:05 +0100)
commit221ab1f0bf46236cf1a3fef5298ff5894acfb0c5
treed0a15b0d6649e20d64a6e04ecdb25bdb307536ca
parentecdb10df7e0d83bfd12fb8f71e28ea4753e3716a
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>
sound/soc/mediatek/mt8186/mt8186-dai-adda.c