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

Commit e9d5a9de authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: wcd-mbhc: Add support for EURO detection



Add support for EURO plug detection for msm8996
target.

Change-Id: I2b9c1d21b03537e92f5e6d3a731cb98926d578bc
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 095c42a3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -706,7 +706,7 @@ exit:
static int wcd_check_cross_conn(struct wcd_mbhc *mbhc)
{
	u16 swap_res;
	enum wcd_mbhc_plug_type plug_type = mbhc->current_plug;
	enum wcd_mbhc_plug_type plug_type = MBHC_PLUG_TYPE_NONE;
	s16 reg1;
	bool hphl_sch_res, hphr_sch_res;

@@ -933,8 +933,10 @@ static void wcd_correct_swch_plug(struct work_struct *work)
	wcd_enable_curr_micbias(mbhc, WCD_MBHC_EN_MB);


	if (mbhc->current_plug == MBHC_PLUG_TYPE_GND_MIC_SWAP)
	if (mbhc->current_plug == MBHC_PLUG_TYPE_GND_MIC_SWAP) {
		mbhc->current_plug = MBHC_PLUG_TYPE_NONE;
		goto correct_plug_type;
	}

	/* Enable HW FSM */
	WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_FSM_EN, 1);