ASoC: mediatek: mt8195: update control for RT5682 series
authorTrevor Wu <trevor.wu@mediatek.com>
Tue, 28 Dec 2021 06:48:21 +0000 (14:48 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 Dec 2021 12:45:48 +0000 (12:45 +0000)
commitc5ab93e289ce554a4e0d47330dde120284541aa1
treeff9e16bc9266150c6aa0174f52079b427f753054
parent3ecb46755eb85456b459a1a9f952c52986bce8ec
ASoC: mediatek: mt8195: update control for RT5682 series

Playback pop is observed and the root cause is the reference clock
provided by MT8195 is diabled before RT5682 finishes the control flow.

To ensure the reference clock supplied to RT5682 is disabled after RT5682
finishes all register controls. We replace BCLK with MCLK for RT5682
reference clock, and makes use of set_bias_level_post to handle MCLK
which guarantees MCLK is off after all RT5682 register access.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20211228064821.27865-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c