Skip to content

Commit fca2fee

Browse files
Binyuan LanZhengShunQian
authored andcommitted
ASoC: rockchip: rk817-codec: optimize the reset operation
Solve the problem of small recording amplitude in the first recording. Change-Id: I268f56b1a2c5a16da958952fe06ce11ada1cf932 Signed-off-by: Binyuan Lan <lby@rock-chips.com>
1 parent ca3ce61 commit fca2fee

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sound/soc/codecs/rk817_codec.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ static int rk817_reset(struct snd_soc_codec *codec)
251251
{
252252
snd_soc_write(codec, RK817_CODEC_DTOP_LPT_SRST, 0x40);
253253
snd_soc_write(codec, RK817_CODEC_DDAC_POPD_DACST, 0x02);
254+
snd_soc_write(codec, RK817_CODEC_DTOP_DIGEN_CLKE, 0x0f);
255+
snd_soc_write(codec, RK817_CODEC_APLL_CFG0, 0x04);
256+
snd_soc_write(codec, RK817_CODEC_APLL_CFG1, 0x58);
257+
snd_soc_write(codec, RK817_CODEC_APLL_CFG2, 0x2d);
258+
snd_soc_write(codec, RK817_CODEC_APLL_CFG3, 0x0c);
259+
snd_soc_write(codec, RK817_CODEC_APLL_CFG4, 0xa5);
260+
snd_soc_write(codec, RK817_CODEC_APLL_CFG5, 0x00);
261+
snd_soc_write(codec, RK817_CODEC_DTOP_DIGEN_CLKE, 0x00);
254262

255263
return 0;
256264
}

0 commit comments

Comments
 (0)