ASoC: mediatek: mt8188: refine APLL control
authorTrevor Wu <trevor.wu@mediatek.com>
Wed, 10 May 2023 03:55:21 +0000 (11:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 May 2023 11:05:08 +0000 (20:05 +0900)
commit9be0213a6858d0084a9e800d2b451678f014f337
tree2abc0bda2d9b0eff94170df246cd3cac9f2d42d7
parente5d2bd4103df419fd33131f1aa7a8dea35e3638c
ASoC: mediatek: mt8188: refine APLL control

Currently, APLL is only used in ETDM module, so APLL and APLL tuner
don't need to be enabled when AFE is used. Integrate APLL control into
ETDM DAPM routes, so that APLL can be enabled when it is really required.

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