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>
This commit is contained in:
Binyuan Lan
2018-09-11 23:40:43 +08:00
committed by Tao Huang
parent d2f3829d9d
commit a1dc65d39b

View File

@@ -251,6 +251,14 @@ static int rk817_reset(struct snd_soc_codec *codec)
{
snd_soc_write(codec, RK817_CODEC_DTOP_LPT_SRST, 0x40);
snd_soc_write(codec, RK817_CODEC_DDAC_POPD_DACST, 0x02);
snd_soc_write(codec, RK817_CODEC_DTOP_DIGEN_CLKE, 0x0f);
snd_soc_write(codec, RK817_CODEC_APLL_CFG0, 0x04);
snd_soc_write(codec, RK817_CODEC_APLL_CFG1, 0x58);
snd_soc_write(codec, RK817_CODEC_APLL_CFG2, 0x2d);
snd_soc_write(codec, RK817_CODEC_APLL_CFG3, 0x0c);
snd_soc_write(codec, RK817_CODEC_APLL_CFG4, 0xa5);
snd_soc_write(codec, RK817_CODEC_APLL_CFG5, 0x00);
snd_soc_write(codec, RK817_CODEC_DTOP_DIGEN_CLKE, 0x00);
return 0;
}