From dc9d51cfe2f508254e8b83b354dacee2fbb0a8dc Mon Sep 17 00:00:00 2001 From: Phani Kumar Uppalapati Date: Fri, 6 Nov 2015 18:42:04 -0800 Subject: [PATCH] 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: Phani Kumar Uppalapati --- sound/soc/msm/msm8996.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/msm/msm8996.c b/sound/soc/msm/msm8996.c index e182b0bba13c..50db7786c246 100644 --- a/sound/soc/msm/msm8996.c +++ b/sound/soc/msm/msm8996.c @@ -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) -- 2.11.0