aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-26 16:07:32 +0100
committerAndreas Blaesius <skate4life@gmx.de>2016-04-30 11:04:00 +0200
commitdf1e6acfe072b32c19b2d883c4547e77bf6614b9 (patch)
tree600067a75e8c5092a625da14ced364f9811ea57e /sound
parent83634afb3e8b5b02d7393cee5126415d908a9f67 (diff)
downloadkernel_samsung_espresso10-df1e6acfe072b32c19b2d883c4547e77bf6614b9.zip
kernel_samsung_espresso10-df1e6acfe072b32c19b2d883c4547e77bf6614b9.tar.gz
kernel_samsung_espresso10-df1e6acfe072b32c19b2d883c4547e77bf6614b9.tar.bz2
ASoC: wm8994: Tune debounce rates for jack detect mode
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index bfd0b43..b637275 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -103,8 +103,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)
@@ -3532,6 +3532,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);