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

Commit 421c5bf3 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: wcd-mbhc: Fix issue with headset insert with extn.cable



Fix continuous noise issue from headset when inserted/removed
from other end of extension cable.

CRs-fixed: 1003026
Change-Id: Ic2560285e9a1776e86ca45ef875f121bb0b74a2d
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent fd64e02a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -603,7 +603,8 @@ static void wcd_mbhc_report_plug(struct wcd_mbhc *mbhc, int insertion,
		    jack_type == SND_JACK_LINEOUT) &&
		    (mbhc->hph_status && mbhc->hph_status != jack_type)) {

			if (mbhc->micbias_enable) {
			if (mbhc->micbias_enable &&
			    mbhc->current_plug == MBHC_PLUG_TYPE_HEADSET) {
				if (mbhc->mbhc_cb->mbhc_micbias_control)
					mbhc->mbhc_cb->mbhc_micbias_control(
						mbhc->codec, MIC_BIAS_2,