From 6abe95fd0bef38ed954cfa48db2b47d7350a5b1f Mon Sep 17 00:00:00 2001 From: Ramlal Karra Date: Wed, 4 Mar 2020 13:13:13 +0530 Subject: [PATCH] asoc: codecs: Avoid MBHC OverCurrentProtection. In the existing code, Over Current Protection interrupt is enabled as part of MBHC insertion event handling. This is causing audio mute on Stereo Headset randomly. This OCP through MBHC is no more required as the Over Current/surge is handled in HW. Removing the OCP enabling code to fix the issue. CRs-Fixed: 2622368 Change-Id: Iae8994aa365eb294793190f665407af111b23c82 Signed-off-by: Ramlal Karra --- asoc/codecs/wcd-mbhc-v2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/asoc/codecs/wcd-mbhc-v2.c b/asoc/codecs/wcd-mbhc-v2.c index 3b2403fa0660..48f0c6e42556 100644 --- a/asoc/codecs/wcd-mbhc-v2.c +++ b/asoc/codecs/wcd-mbhc-v2.c @@ -422,7 +422,6 @@ static void wcd_mbhc_clr_and_turnon_hph_padac(struct wcd_mbhc *mbhc) &mbhc->hph_pa_dac_state)) { pr_debug("%s: HPHR clear flag and enable PA\n", __func__); WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_HPHR_PA_EN, 1); - WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_HPHR_OCP_DET_EN, 1); pa_turned_on = true; } mutex_unlock(&mbhc->hphr_pa_lock); @@ -431,7 +430,6 @@ static void wcd_mbhc_clr_and_turnon_hph_padac(struct wcd_mbhc *mbhc) &mbhc->hph_pa_dac_state)) { pr_debug("%s: HPHL clear flag and enable PA\n", __func__); WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_HPHL_PA_EN, 1); - WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_HPHL_OCP_DET_EN, 1); pa_turned_on = true; } mutex_unlock(&mbhc->hphl_pa_lock);