]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa7b19c5f59f518acd4609d0137b3d55ae21f983
treeff9e16bc9266150c6aa0174f52079b427f753054
parentab4658054c2e8a2e83f9e489c19c625c9868e9c7
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