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
This commit is contained in:
Trevor Wu 2023-05-10 11:55:20 +08:00 • committed by Mark Brown
commit e5d2bd4103
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 406 additions and 386 deletions