summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorChandrakanth Gorantla <cgorantla@nvidia.com>2011-08-01 18:50:57 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-08-01 18:44:19 -0700
commit5146502394b1d77feb08f15366802af047f2fed0 (patch)
treecd93f77eb960550b86b05e90ee5b8ce3365f6b91 /sound
parent49c2857c2a5e5d9fe4ce13af18fa2b7916b723da (diff)
ASOC:tegra: Set debounce time to 200ms
Fixes toggling between digital and analog mike Bug 857654 Change-Id: I87eecf1168a4e8c4358dedc0fa643ec8756b57db Reviewed-on: http://git-master/r/44340 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
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)