ASoC: wcd937x: Add check for ULP irrespective of the Class
Add check for ULP mode irrespective of the Class to update QCRG sequence. Change-Id: Ie314aec147083df2b7db3e2769e3ff652d13c7de
This commit is contained in:
1 parent
7ce05e2df9
commit
df752383fc
1 file changed
+8
-4
@@ -460,7 +460,8 @@ static int wcd937x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
|
||||
case SND_SOC_DAPM_POST_PMU:
|
||||
if ((snd_soc_component_read32(component,
|
||||
WCD937X_DIGITAL_EFUSE_REG_16) == 0x02) &&
|
||||
hph_mode == CLS_H_ULP)
|
||||
((snd_soc_component_read32(component,
|
||||
WCD937X_ANA_HPH) & 0x0C) == 0x0C))
|
||||
snd_soc_component_update_bits(component,
|
||||
WCD937X_RX_BIAS_HPH_LOWPOWER, 0xF0, 0x90);
|
||||
if (hph_mode == CLS_AB_HIFI || hph_mode == CLS_H_HIFI)
|
||||
@@ -506,7 +507,8 @@ static int wcd937x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
|
||||
case SND_SOC_DAPM_POST_PMD:
|
||||
if ((snd_soc_component_read32(component,
|
||||
WCD937X_DIGITAL_EFUSE_REG_16) == 0x02) &&
|
||||
hph_mode == CLS_H_ULP)
|
||||
((snd_soc_component_read32(component,
|
||||
WCD937X_ANA_HPH) & 0x0C) == 0x0C))
|
||||
snd_soc_component_update_bits(component,
|
||||
WCD937X_RX_BIAS_HPH_LOWPOWER, 0xF0, 0x80);
|
||||
snd_soc_component_update_bits(component,
|
||||
@@ -544,7 +546,8 @@ static int wcd937x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
|
||||
case SND_SOC_DAPM_POST_PMU:
|
||||
if ((snd_soc_component_read32(component,
|
||||
WCD937X_DIGITAL_EFUSE_REG_16) == 0x02) &&
|
||||
hph_mode == CLS_H_ULP)
|
||||
((snd_soc_component_read32(component,
|
||||
WCD937X_ANA_HPH) & 0x0C) == 0x0C))
|
||||
snd_soc_component_update_bits(component,
|
||||
WCD937X_RX_BIAS_HPH_LOWPOWER, 0xF0, 0x90);
|
||||
if (hph_mode == CLS_AB_HIFI || hph_mode == CLS_H_HIFI)
|
||||
@@ -590,7 +593,8 @@ static int wcd937x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,
|
||||
case SND_SOC_DAPM_POST_PMD:
|
||||
if ((snd_soc_component_read32(component,
|
||||
WCD937X_DIGITAL_EFUSE_REG_16) == 0x02) &&
|
||||
hph_mode == CLS_H_ULP)
|
||||
((snd_soc_component_read32(component,
|
||||
WCD937X_ANA_HPH) & 0x0C) == 0x0C))
|
||||
snd_soc_component_update_bits(component,
|
||||
WCD937X_RX_BIAS_HPH_LOWPOWER, 0xF0, 0x80);
|
||||
snd_soc_component_update_bits(component,
|
||||
|
||||
Reference in new issue
Block a user