From d492d4aeb341cd1cd2eb268890a770ff2f53a251 Mon Sep 17 00:00:00 2001 From: Binyuan Lan Date: Sat, 2 Jul 2022 12:19:51 +0000 Subject: [PATCH] ASoC: rockchip: rk817-codec: enable mclk when reset Solve the problem that LRCK level amplitude is not enough Signed-off-by: Binyuan Lan Change-Id: Id79df3de70cd525e1d5425d4177d774a514c45da --- sound/soc/codecs/rk817_codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c index 41863149d1d6..c6f9b34435ee 100644 --- a/sound/soc/codecs/rk817_codec.c +++ b/sound/soc/codecs/rk817_codec.c @@ -1147,7 +1147,10 @@ static int rk817_probe(struct snd_soc_component *component) rk817->chip_ver = (chip_ver & 0x0f); dev_info(component->dev, "%s: chip_name:0x%x, chip_ver:0x%x\n", __func__, chip_name, chip_ver); + clk_prepare_enable(rk817->mclk); rk817_reset(component); + clk_disable_unprepare(rk817->mclk); + snd_soc_add_component_controls(component, rk817_snd_path_controls, ARRAY_SIZE(rk817_snd_path_controls)); return 0;