ASoC: rockchip: rk817-codec: enable mclk when reset

Solve the problem that LRCK level amplitude is not enough

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Id79df3de70cd525e1d5425d4177d774a514c45da
This commit is contained in:
Binyuan Lan
2022-07-02 12:19:51 +00:00
committed by Chris
parent 9e646df62b
commit d492d4aeb3

View File

@@ -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;