]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: mediatek: mt6358: Add "Dmic Mode Switch" kcontrol for switch DMIC mode.
authorJiaxin Yu <jiaxin.yu@mediatek.com>
Thu, 13 Jun 2024 02:07:25 +0000 (10:07 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jun 2024 12:38:32 +0000 (13:38 +0100)
commit4ae814dabcdae3e434820c64396e15ccb33cc0ce
tree8c03c065e0f569541aaa50f05b4b4a8f103134f6
parent2604faa7b71291b0ccd17f8d6009f3ff6dae287b
ASoC: mediatek: mt6358: Add "Dmic Mode Switch" kcontrol for switch DMIC mode.

There are two hardware connection methods for DMICs on the MT6358. In cases
where more than two DMICs are used, we need to time-multiplex these DMICs.
Therefore, we need to dynamically switch the modes of these DMICs based on
the actual usage scenarios.

            ---- DMIC1
AU_VIN0 ---
            ---- DMIC2

AU_VIN2 --- ----DMIC3

When we want to use DMIC1/2, configure it to one-wire mode. When we want to
use DMIC1/3, configure it to two-wire mode.

Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com>
Link: https://patch.msgid.link/20240613020725.27874-1-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6358.c