Skip to content

Commit 9ed2be4

Browse files
Binyuan Lanrkhuangtao
Binyuan Lan
authored andcommittedJul 25, 2022
ASoC: rockchip: rk817-codec: enable mclk when reset
Solve the problem that LRCK level amplitude is not enough Signed-off-by: Binyuan Lan <[email protected]> Change-Id: Id79df3de70cd525e1d5425d4177d774a514c45da
1 parent 50abfb4 commit 9ed2be4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎sound/soc/codecs/rk817_codec.c

+3
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,10 @@ static int rk817_probe(struct snd_soc_codec *codec)
10221022
rk817->chip_ver = (chip_ver & 0x0f);
10231023
dev_info(codec->dev, "%s: chip_name:0x%x, chip_ver:0x%x\n", __func__, chip_name, chip_ver);
10241024

1025+
clk_prepare_enable(rk817->mclk);
10251026
rk817_reset(codec);
1027+
clk_disable_unprepare(rk817->mclk);
1028+
10261029
snd_soc_add_codec_controls(codec, rk817_snd_path_controls,
10271030
ARRAY_SIZE(rk817_snd_path_controls));
10281031
return 0;

0 commit comments

Comments
 (0)