mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user