mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ASoC: rk3308_codec: enable DAC HPOUT_POP_SOUND LINEOUT
We need to keep HPOUT_POP_SOUND enabled and powered VCM. Reported-by: XiaoTan Luo <lxt@rock-chips.com> Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> Change-Id: I9cd5151dfa6f791985cd381616674df0348e2fcb
This commit is contained in:
@@ -2066,17 +2066,14 @@ static int rk3308_codec_dac_enable(struct rk3308_codec_priv *rk3308)
|
||||
/* Waiting the stable reference voltage */
|
||||
mdelay(1);
|
||||
|
||||
if (rk3308->dac_output == DAC_HPOUT ||
|
||||
rk3308->dac_output == DAC_LINEOUT_HPOUT) {
|
||||
/* Step 03 */
|
||||
regmap_update_bits(rk3308->regmap, RK3308_DAC_ANA_CON01,
|
||||
RK3308_DAC_HPOUT_POP_SOUND_L_MSK |
|
||||
RK3308_DAC_HPOUT_POP_SOUND_R_MSK,
|
||||
RK3308_DAC_HPOUT_POP_SOUND_L_WORK |
|
||||
RK3308_DAC_HPOUT_POP_SOUND_R_WORK);
|
||||
/* Step 03 */
|
||||
regmap_update_bits(rk3308->regmap, RK3308_DAC_ANA_CON01,
|
||||
RK3308_DAC_HPOUT_POP_SOUND_L_MSK |
|
||||
RK3308_DAC_HPOUT_POP_SOUND_R_MSK,
|
||||
RK3308_DAC_HPOUT_POP_SOUND_L_WORK |
|
||||
RK3308_DAC_HPOUT_POP_SOUND_R_WORK);
|
||||
|
||||
udelay(20);
|
||||
}
|
||||
udelay(20);
|
||||
|
||||
if (rk3308->codec_ver == ACODEC_VERSION_B &&
|
||||
(rk3308->dac_output == DAC_LINEOUT ||
|
||||
|
||||
Reference in New Issue
Block a user