summaryrefslogtreecommitdiff
path: root/sound/soc/msm/msm8226.c
diff options
context:
space:
mode:
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>2013-06-13 17:49:07 -0700
committerStephen Boyd <sboyd@codeaurora.org>2013-09-04 17:02:43 -0700
commit7580cd3e7d048270f453fb8b74d1258bf5daed48 (patch)
tree366f51acafbe6289a2ccadf116c58a77a2923099 /sound/soc/msm/msm8226.c
parentde044ac0c53530ad2165862cc778efe69a729c13 (diff)
ASoC: msm: Enable support to detect headsets with threshold on mic
When headset with threshold on mic is detected, we should maintain mic bias all times even with audio playback in progress and we should not switch to VDDIO. Otherwise, headset button press will not be detected and sometimes we might get headset removal interrupt after calibrating the thresholds to VDDIO. Change-Id: I270bbad85ac7c4aaa44bfe0104df04f5203d476a Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Diffstat (limited to 'sound/soc/msm/msm8226.c')
-rw-r--r--sound/soc/msm/msm8226.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/msm/msm8226.c b/sound/soc/msm/msm8226.c
index 2dcae0526687..9dac02e531b1 100644
--- a/sound/soc/msm/msm8226.c
+++ b/sound/soc/msm/msm8226.c
@@ -72,7 +72,7 @@ static struct wcd9xxx_mbhc_config mbhc_cfg = {
.gpio_irq = 0,
.gpio_level_insert = 0,
.detect_extn_cable = true,
- .micbias_enable_flags = 0,
+ .micbias_enable_flags = 1 << MBHC_MICBIAS_ENABLE_THRESHOLD_HEADSET,
.insert_detect = true,
.swap_gnd_mic = NULL,
};