diff options
author | Binyuan Lan <lby@rock-chips.com> | 2018-10-23 11:55:42 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-10-23 17:45:06 +0800 |
commit | d9392291c8ec8bea6057a271b01ec93fb8c18514 (patch) | |
tree | 2b8aa8583635311d0eaccf0adcbd70f2a0f667dc /sound | |
parent | 15ba079fa3853c1644585a3b573073be9a9d66af (diff) |
ASoC: rockchip: rk817-codec: fix mic_in_differential as loopback fail issue
Change-Id: I6e69ec61a380f7a0ffc234aafcfdfb8e38654461
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rk817_codec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c index e3cbe7eeed24..b5501048f595 100644 --- a/sound/soc/codecs/rk817_codec.c +++ b/sound/soc/codecs/rk817_codec.c @@ -329,7 +329,7 @@ static struct rk817_reg_val_typ capture_power_up_list[] = { {RK817_CODEC_DI2S_TXCR3_TXCMD, 0x88}, {RK817_CODEC_DDAC_POPD_DACST, 0x02}, /* 0x29: -18db to 27db */ - {RK817_CODEC_DMIC_PGA_GAIN, 0xaa}, + {RK817_CODEC_DMIC_PGA_GAIN, 0x99}, }; #define RK817_CODEC_CAPTURE_POWER_UP_LIST_LEN \ @@ -649,7 +649,7 @@ static int rk817_capture_path_put(struct snd_kcontrol *kcontrol, if (rk817->adc_for_loopback) { /* don't need to gain when adc use for loopback */ - snd_soc_write(codec, RK817_CODEC_AMIC_CFG0, 0x00); + snd_soc_update_bits(codec, RK817_CODEC_AMIC_CFG0, 0xf, 0x0); snd_soc_write(codec, RK817_CODEC_DMIC_PGA_GAIN, 0x66); snd_soc_write(codec, RK817_CODEC_DADC_VOLL, 0x00); snd_soc_write(codec, RK817_CODEC_DADC_VOLR, 0x00); @@ -669,7 +669,7 @@ static int rk817_capture_path_put(struct snd_kcontrol *kcontrol, if (rk817->adc_for_loopback) { /* don't need to gain when adc use for loopback */ - snd_soc_write(codec, RK817_CODEC_AMIC_CFG0, 0x00); + snd_soc_update_bits(codec, RK817_CODEC_AMIC_CFG0, 0xf, 0x0); snd_soc_write(codec, RK817_CODEC_DMIC_PGA_GAIN, 0x66); snd_soc_write(codec, RK817_CODEC_DADC_VOLL, 0x00); snd_soc_write(codec, RK817_CODEC_DADC_VOLR, 0x00); |