Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a01acb11 authored by Yeleswarapu, Nagaradhesh's avatar Yeleswarapu, Nagaradhesh
Browse files

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: default avatarYeleswarapu, Nagaradhesh <nagaradh@codeaurora.org>
parent abedad47
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3742,6 +3742,7 @@ static void wcd9xxx_mbhc_setup(struct wcd9xxx_mbhc *mbhc)
	gain = wcd9xxx_mbhc_cal_btn_det_mp(btn_det, MBHC_BTN_DET_GAIN);
	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,
	snd_soc_update_bits(codec, WCD9XXX_A_CDC_MBHC_B2_CTL, 0x78,
			    gain[idx] << 3);
			    gain[idx] << 3);
	snd_soc_update_bits(codec, WCD9XXX_A_MICB_2_MBHC, 0x04, 0x04);


	pr_debug("%s: leave\n", __func__);
	pr_debug("%s: leave\n", __func__);
}
}