summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/max98088.c4
-rw-r--r--sound/soc/codecs/max98088.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index a905182f6193..9d3f8b9c0c37 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -2164,6 +2164,10 @@ static int max98088_probe(struct platform_device *pdev)
snd_soc_update_bits(codec, M98088_REG_0F_IRQ_ENABLE,
M98088_REG_0F_IRQ_ENABLE_IJDET,
M98088_REG_0F_IRQ_ENABLE_IJDET);
+ /* Setting Debounce time to 200msec */
+ snd_soc_update_bits(codec, M98088_REG_4B_CFG_JACKDET,
+ M98088_REG_4B_CFG_JACKDET_JDEB,
+ M98088_REG_4B_CFG_JACKDET_JDEB);
max98088_handle_pdata(codec);
diff --git a/sound/soc/codecs/max98088.h b/sound/soc/codecs/max98088.h
index e802cf6e0c0d..35cdd992b02f 100644
--- a/sound/soc/codecs/max98088.h
+++ b/sound/soc/codecs/max98088.h
@@ -200,6 +200,9 @@
/* M98088_REG_4B_CFG_JACKDET */
#define M98088_REG_4B_CFG_JACKDET_JDETEN (1<<7)
+/* M98088_REG_4B_CFG_JACKDET */
+#define M98088_REG_4B_CFG_JACKDET_JDEB (3<<0)
+
/* M98088_REG_0F_IRQ_ENABLE */
#define M98088_REG_0F_IRQ_ENABLE_IJDET (1<<1)