summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98088.c
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/soc/codecs/max98088.c
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/soc/codecs/max98088.c')
-rw-r--r--sound/soc/codecs/max98088.c4
1 files changed, 4 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);