ASoC: mediatek: mt8188: revise ETDM control flow
authorTrevor Wu <trevor.wu@mediatek.com>
Wed, 10 May 2023 03:55:20 +0000 (11:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 May 2023 11:05:08 +0000 (20:05 +0900)
commite5d2bd4103df419fd33131f1aa7a8dea35e3638c
tree009e8d0112b2c35d0cc28684fd402aaca1016f2d
parent2664c8790cfdcaa81ff8b3b9f649a6635955d636
ASoC: mediatek: mt8188: revise ETDM control flow

Replace register controls in snd_soc_dai_ops with snd_soc_dapm_widgets.
startup, shutdown and trigger ops are removed, and create DAPM_SUPPLY
to handle mclk, clock gating and etdm enabling. Additionally, mclk setup
sequence is also updated because of new supply enabling sequence.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com
Link: https://lore.kernel.org/r/20230510035526.18137-4-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
sound/soc/mediatek/mt8188/mt8188-reg.h