ASoC: msm8x10: Enable current source for headset detection
Headset detection can either use micbias or current source. Set the flag
in the headset detection configuration to indicate usage of current
source for headset detection rather than micbias. Using current source,
the pops and clicks during headset insertion / removal are minimized.
CRs-fixed: 568541
Change-Id: I171cff606704400b811a4e46c5a3d6cdfa8b5510
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
diff --git a/sound/soc/msm/msm8x10.c b/sound/soc/msm/msm8x10.c
index c318849..cc1ddef 100644
--- a/sound/soc/msm/msm8x10.c
+++ b/sound/soc/msm/msm8x10.c
@@ -74,6 +74,9 @@
.insert_detect = true,
.swap_gnd_mic = NULL,
.use_int_rbias = false,
+ .cs_enable_flags = (1 << MBHC_CS_ENABLE_POLLING |
+ 1 << MBHC_CS_ENABLE_INSERTION |
+ 1 << MBHC_CS_ENABLE_REMOVAL),
};
/*