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

Commit 44100f72 authored by Yeleswarapu Nagaradhesh's avatar Yeleswarapu Nagaradhesh
Browse files

ASoC: wcd: enable current source for headphone



If headset is detected as headphone during slow insertion,
could not get button release interrupt on complete insertion
of headset.So enable CS to get button release interrupt.

CRs-Fixed: 705961
Change-Id: I951c34723cc0329f69fff33a479d7702928b6f7c
Signed-off-by: default avatarYeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
parent d5fc7ff6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -678,7 +678,10 @@ static void wcd_mbhc_find_plug_and_report(struct wcd_mbhc *mbhc,
		/*
		 * Nothing was reported previously
		 * report a headphone or unsupported
		 * Enable CS for headphone to correct slow insertion of headset.
		 */
		snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_MBHC_FSM_CTL, 0x30, 0x30);
		wcd_mbhc_report_plug(mbhc, 1, SND_JACK_HEADPHONE);
	} else if (plug_type == MBHC_PLUG_TYPE_GND_MIC_SWAP) {
		wcd_mbhc_report_plug(mbhc, 1, SND_JACK_UNSUPPORTED);