From aecce31ce85182a9114e2eaea6b2ffde031138bc Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 10 Jul 2019 15:36:09 +0530 Subject: [PATCH] ASoC: wcd938x: Disable hph OCP on traverso OCP is resulting in mute issues during audio playback. Traverso has surge protection enabled in hw. Thus OCP can be disabled for traverso. Change-Id: I5af745e9c1fb41640317a406adff59bcde81c37e Signed-off-by: Vatsal Bucha --- asoc/codecs/wcd938x/wcd938x.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/asoc/codecs/wcd938x/wcd938x.c b/asoc/codecs/wcd938x/wcd938x.c index 8113ab4204f2..d8022cb0691c 100644 --- a/asoc/codecs/wcd938x/wcd938x.c +++ b/asoc/codecs/wcd938x/wcd938x.c @@ -146,14 +146,6 @@ static int wcd938x_init_reg(struct snd_soc_component *component) /* 10 msec delay as per HW requirement */ usleep_range(10000, 10010); snd_soc_component_update_bits(component, WCD938X_ANA_BIAS, 0x40, 0x00); - snd_soc_component_update_bits(component, WCD938X_HPH_OCP_CTL, - 0xFF, 0x3A); - snd_soc_component_update_bits(component, WCD938X_RX_OCP_CTL, - 0x0F, 0x02); - snd_soc_component_update_bits(component, WCD938X_HPH_R_TEST, - 0x01, 0x01); - snd_soc_component_update_bits(component, WCD938X_HPH_L_TEST, - 0x01, 0x01); snd_soc_component_update_bits(component, WCD938X_HPH_NEW_INT_RDAC_GAIN_CTL, 0xF0, 0x00);