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

Commit 78c94ef1 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: msm: Enable MBHC 5-pole plug detection



Enable MBHC (Multi Button Headset Control) 5-pole
plug detection so as to detect the presence of
second microphone whenever any accessory is inserted
in to the headset jack.

Change-Id: I53dda0d18006109c19a1cd8ce0bc4df45a13f0bf
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 40598a72
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -186,6 +186,9 @@ static struct wcd_mbhc_config wcd_mbhc_cfg = {
	.key_code[7] = 0,
	.linein_th = 5000,
	.moist_cfg = { V_45_MV, I_3P0_UA },
	.mbhc_micbias = MIC_BIAS_2,
	.anc_micbias = MIC_BIAS_2,
	.enable_anc_mic_detect = false,
};

static inline int param_is_mask(int p)