From 5146502394b1d77feb08f15366802af047f2fed0 Mon Sep 17 00:00:00 2001 From: Chandrakanth Gorantla Date: Mon, 1 Aug 2011 18:50:57 +0530 Subject: 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 Tested-by: Varun Colbert --- sound/soc/codecs/max98088.c | 4 ++++ sound/soc/codecs/max98088.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'sound') 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) -- cgit v1.2.3