summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>2015-11-06 18:42:04 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:14:56 -0700
commitdc9d51cfe2f508254e8b83b354dacee2fbb0a8dc (patch)
treeaf349ea351f3be9316314acd0bb63a085073474f
parenta2034824816a7bca87b00b47e84bbd7293dc136b (diff)
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 <phaniu@codeaurora.org>
-rw-r--r--sound/soc/msm/msm8996.c3
1 files changed, 3 insertions, 0 deletions
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)