summaryrefslogtreecommitdiff
path: root/sound/soc/msm/msm8226.c
diff options
context:
space:
mode:
authorSimmi Pateriya <simmip@codeaurora.org>2013-11-21 07:43:50 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-01-27 07:55:59 -0800
commit6b7cc3596ecd50cbf70868a9fd492f15e181ff8a (patch)
tree74363dc66dbbfbc09af4892739eefcd452e2a78c /sound/soc/msm/msm8226.c
parentfe86b04ed682c393a9af5c5073bcc9df11041170 (diff)
ASoC: wcd9xxx: Enable current source support for 2nd mic detection
Use current source to detect presence of second mic if MICBIAS for primary and secondary mic is not shared. If MICBIAS is shared, do not use detection with current source. Change-Id: I25009bd15cf5a593761d8b182ed4bcb6c2c210a2 Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
Diffstat (limited to 'sound/soc/msm/msm8226.c')
-rw-r--r--sound/soc/msm/msm8226.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/msm/msm8226.c b/sound/soc/msm/msm8226.c
index 44d40bb209a3..4affdbd996f4 100644
--- a/sound/soc/msm/msm8226.c
+++ b/sound/soc/msm/msm8226.c
@@ -93,7 +93,8 @@ static struct wcd9xxx_mbhc_config mbhc_cfg = {
.swap_gnd_mic = NULL,
.cs_enable_flags = (1 << MBHC_CS_ENABLE_POLLING |
1 << MBHC_CS_ENABLE_INSERTION |
- 1 << MBHC_CS_ENABLE_REMOVAL),
+ 1 << MBHC_CS_ENABLE_REMOVAL |
+ 1 << MBHC_CS_ENABLE_DET_ANC),
.do_recalibration = true,
.use_vddio_meas = true,
.enable_anc_mic_detect = false,