asoc: codecs: Fix volume fluctuation issue in headphone playback

HPH PA pull down control is set to force ON instead of auto
due of which saturation/noise is observed in headset
playback at highest volumes. Set pull down control
to Auto to fix this issue.

Change-Id: I465588f46b04bbb32d84f76b8b5bedd2ef21bd2a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
这个提交包含在:
Aditya Bavanari
2020-05-06 14:09:09 +05:30
提交者 Akhil Karuturi
父节点 050e740320
当前提交 cbe9426358
修改 2 个文件,包含 14 行新增5 行删除

查看文件

@@ -664,10 +664,10 @@ static void rouleur_mbhc_hph_pull_down_ctrl(struct snd_soc_component *component,
if (enable) { if (enable) {
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_ANA_HPHPA_CNP_CTL_2, ROULEUR_ANA_HPHPA_CNP_CTL_2,
0x30, 0x10); 0x30, 0x20);
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_ANA_HPHPA_CNP_CTL_2, ROULEUR_ANA_HPHPA_CNP_CTL_2,
0x0C, 0x04); 0x0C, 0x08);
} else { } else {
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_ANA_HPHPA_CNP_CTL_2, ROULEUR_ANA_HPHPA_CNP_CTL_2,

查看文件

@@ -472,7 +472,7 @@ static int rouleur_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
} }
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX0_CTL, ROULEUR_DIG_SWR_CDC_RX0_CTL,
0x7C, 0x7C); 0x80, 0x00);
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL, ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL,
0x04, 0x04); 0x04, 0x04);
@@ -486,6 +486,9 @@ static int rouleur_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL, ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL,
0x04, 0x00); 0x04, 0x00);
snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX0_CTL,
0x80, 0x80);
if (rouleur->comp1_enable) if (rouleur->comp1_enable)
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_COMP_CTL_0, ROULEUR_DIG_SWR_CDC_COMP_CTL_0,
@@ -544,7 +547,7 @@ static int rouleur_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
} }
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX1_CTL, ROULEUR_DIG_SWR_CDC_RX1_CTL,
0x7C, 0x7C); 0x80, 0x00);
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL, ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL,
0x08, 0x08); 0x08, 0x08);
@@ -557,6 +560,9 @@ static int rouleur_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL, ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL,
0x08, 0x00); 0x08, 0x00);
snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX1_CTL,
0x80, 0x80);
if (rouleur->comp2_enable) if (rouleur->comp2_enable)
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_COMP_CTL_0, ROULEUR_DIG_SWR_CDC_COMP_CTL_0,
@@ -583,7 +589,7 @@ static int rouleur_codec_ear_lo_dac_event(struct snd_soc_dapm_widget *w,
rouleur_rx_clk_enable(component); rouleur_rx_clk_enable(component);
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX0_CTL, ROULEUR_DIG_SWR_CDC_RX0_CTL,
0x7C, 0x7C); 0x80, 0x00);
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL, ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL,
0x04, 0x04); 0x04, 0x04);
@@ -599,6 +605,9 @@ static int rouleur_codec_ear_lo_dac_event(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL, ROULEUR_DIG_SWR_CDC_RX_GAIN_CTL,
0x04, 0x00); 0x04, 0x00);
snd_soc_component_update_bits(component,
ROULEUR_DIG_SWR_CDC_RX0_CTL,
0x80, 0x80);
break; break;
}; };