From cf5a58f1172b558cdf76b203b9950ca84097b407 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 10 Jul 2019 12:58:39 +0530 Subject: [PATCH] ASoC: wcd937x: Disable hph OCP on talos OCP is resulting in mute issues during audio playback. Talos has surge protection enabled in hw. Thus OCP can be disabled for talos. Change-Id: I5a7fe54ae9e77af65dd9e017b4001f2fac3cfdd4 Signed-off-by: Vatsal Bucha --- asoc/codecs/wcd937x/wcd937x.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/asoc/codecs/wcd937x/wcd937x.c b/asoc/codecs/wcd937x/wcd937x.c index e89d9a9179..08eb36996c 100644 --- a/asoc/codecs/wcd937x/wcd937x.c +++ b/asoc/codecs/wcd937x/wcd937x.c @@ -127,10 +127,6 @@ static int wcd937x_init_reg(struct snd_soc_component *component) usleep_range(10000, 10010); snd_soc_component_update_bits(component, WCD937X_ANA_BIAS, 0x40, 0x00); - snd_soc_component_update_bits(component, WCD937X_HPH_OCP_CTL, - 0xFF, 0x3A); - snd_soc_component_update_bits(component, WCD937X_RX_OCP_CTL, - 0x0F, 0x02); snd_soc_component_update_bits(component, WCD937X_HPH_SURGE_HPHLR_SURGE_EN, 0xFF, 0xD9); @@ -683,8 +679,6 @@ static int wcd937x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w, snd_soc_component_update_bits(component, WCD937X_HPH_NEW_INT_HPH_TIMER1, 0x02, 0x02); - snd_soc_component_update_bits(component, - WCD937X_HPH_R_TEST, 0x01, 0x01); if (hph_mode == CLS_AB || hph_mode == CLS_AB_HIFI) snd_soc_component_update_bits(component, WCD937X_ANA_RX_SUPPLIES, @@ -695,8 +689,6 @@ static int wcd937x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w, (WCD_RX2 << 0x10)); break; case SND_SOC_DAPM_PRE_PMD: - snd_soc_component_update_bits(component, - WCD937X_HPH_R_TEST, 0x01, 0x00); if (wcd937x->update_wcd_event) wcd937x->update_wcd_event(wcd937x->handle, WCD_BOLERO_EVT_RX_MUTE, @@ -782,8 +774,6 @@ static int wcd937x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w, snd_soc_component_update_bits(component, WCD937X_HPH_NEW_INT_HPH_TIMER1, 0x02, 0x02); - snd_soc_component_update_bits(component, - WCD937X_HPH_L_TEST, 0x01, 0x01); if (hph_mode == CLS_AB || hph_mode == CLS_AB_HIFI) snd_soc_component_update_bits(component, WCD937X_ANA_RX_SUPPLIES, @@ -794,8 +784,6 @@ static int wcd937x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w, (WCD_RX1 << 0x10)); break; case SND_SOC_DAPM_PRE_PMD: - snd_soc_component_update_bits(component, - WCD937X_HPH_L_TEST, 0x01, 0x00); if (wcd937x->update_wcd_event) wcd937x->update_wcd_event(wcd937x->handle, WCD_BOLERO_EVT_RX_MUTE,