diff options
author | Simmi Pateriya <simmip@codeaurora.org> | 2013-11-21 07:43:50 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-01-27 07:55:59 -0800 |
commit | 6b7cc3596ecd50cbf70868a9fd492f15e181ff8a (patch) | |
tree | 74363dc66dbbfbc09af4892739eefcd452e2a78c /sound/soc/msm | |
parent | fe86b04ed682c393a9af5c5073bcc9df11041170 (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')
-rw-r--r-- | sound/soc/msm/msm8226.c | 3 | ||||
-rw-r--r-- | sound/soc/msm/msm8974.c | 3 |
2 files changed, 4 insertions, 2 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, diff --git a/sound/soc/msm/msm8974.c b/sound/soc/msm/msm8974.c index 79c15e87d08c..8854828591f5 100644 --- a/sound/soc/msm/msm8974.c +++ b/sound/soc/msm/msm8974.c @@ -128,7 +128,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, |