ASoC: wcd9xxx: Enable PWR_SWCH_OVRD to reduce noise
If headset is inserted slowly, polling noise is heard
for 5 sec. To reduce the level of polling noise set bit2
in 0x133 register.
CRs-Fixed: 578695
Change-Id: Ic56a545730d8a435fe7fe66009dd3fd7022b249e
Signed-off-by: Yeleswarapu, Nagaradhesh <nagaradh@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9xxx-mbhc.c b/sound/soc/codecs/wcd9xxx-mbhc.c
index 3d07f15..6f80abf 100644
--- a/sound/soc/codecs/wcd9xxx-mbhc.c
+++ b/sound/soc/codecs/wcd9xxx-mbhc.c
@@ -3719,6 +3719,7 @@
gain = wcd9xxx_mbhc_cal_btn_det_mp(btn_det, MBHC_BTN_DET_GAIN);
snd_soc_update_bits(codec, WCD9XXX_A_CDC_MBHC_B2_CTL, 0x78,
gain[idx] << 3);
+ snd_soc_update_bits(codec, WCD9XXX_A_MICB_2_MBHC, 0x04, 0x04);
pr_debug("%s: leave\n", __func__);
}