diff options
author | Chris Rattray <crattray@opensource.wolfsonmicro.com> | 2012-07-31 14:51:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-03 23:03:57 +0100 |
commit | d9f34df782b2aa7d233cb08850c8b12fdb37d18a (patch) | |
tree | 5ef2b5e52c73033f2ebed5165fe4f599c3bca0dd /sound/soc/codecs/wm8994.c | |
parent | d95e933730b3eb7b06bd778dc1d8f0ab3702b607 (diff) | |
download | talos-op-linux-d9f34df782b2aa7d233cb08850c8b12fdb37d18a.tar.gz talos-op-linux-d9f34df782b2aa7d233cb08850c8b12fdb37d18a.zip |
ASoC: wm8994: enable mic and short detect debounce.
Signed-off-by: Chris Rattray <crattray@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 5fc31797994a..02080da8b451 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -3262,6 +3262,12 @@ int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, snd_soc_update_bits(codec, WM8994_MICBIAS, WM8994_MICD_ENA, reg); + /* enable MICDET and MICSHRT deboune */ + snd_soc_update_bits(codec, WM8994_IRQ_DEBOUNCE, + WM8994_MIC1_DET_DB_MASK | WM8994_MIC1_SHRT_DB_MASK | + WM8994_MIC2_DET_DB_MASK | WM8994_MIC2_SHRT_DB_MASK, + WM8994_MIC1_DET_DB | WM8994_MIC1_SHRT_DB); + snd_soc_dapm_sync(&codec->dapm); return 0; |