diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-26 16:07:32 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-26 18:08:39 +0100 |
commit | e9d9a968e7f50f7ade7e2b428df6e437905b3cd2 (patch) | |
tree | 1656fed33c2b620c2de9d12f733bfe709bed980a /sound/soc/codecs/wm8994.c | |
parent | 501bf0354df9348dcd199d7f6f57c13fed7a45cb (diff) | |
download | op-kernel-dev-e9d9a968e7f50f7ade7e2b428df6e437905b3cd2.zip op-kernel-dev-e9d9a968e7f50f7ade7e2b428df6e437905b3cd2.tar.gz |
ASoC: wm8994: Tune debounce rates for jack detect mode
Use a slightly larger debounce when identifying accessory type and a
slightly smaller one when detecting buttons in response to user feedback
from large scale testing.
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, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 746d3db..e10d46a 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -70,8 +70,8 @@ static const struct wm8958_micd_rate micdet_rates[] = { static const struct wm8958_micd_rate jackdet_rates[] = { { 32768, true, 0, 1 }, { 32768, false, 0, 1 }, - { 44100 * 256, true, 7, 10 }, - { 44100 * 256, false, 7, 10 }, + { 44100 * 256, true, 10, 10 }, + { 44100 * 256, false, 7, 8 }, }; static void wm8958_micd_set_rate(struct snd_soc_codec *codec) @@ -3299,6 +3299,8 @@ static irqreturn_t wm1811_jackdet_irq(int irq, void *data) if (present) { dev_dbg(codec->dev, "Jack detected\n"); + wm8958_micd_set_rate(codec); + snd_soc_update_bits(codec, WM8958_MICBIAS2, WM8958_MICB2_DISCH, 0); |