summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-30 14:42:27 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-30 14:47:46 +0200
commit7afce3f5e56e9cb97cf1f35832bf8e8dde08cc45 (patch)
tree2c32882bee4c3b59573365d6797b91887773864b /sound
parentASoC: wm8994: Avoid leaking pm_runtime reference on removed jack race (diff)
downloadlinux-7afce3f5e56e9cb97cf1f35832bf8e8dde08cc45.tar.xz
linux-7afce3f5e56e9cb97cf1f35832bf8e8dde08cc45.zip
ASoC: wm8994: Ensure microphone detection state is reset on removal
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 19e0b2048af6..29e95f93d482 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -3842,6 +3842,7 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
snd_soc_jack_report(wm8994->micdet[0].jack, 0,
SND_JACK_MECHANICAL | SND_JACK_HEADSET |
wm8994->btn_mask);
+ wm8994->mic_detecting = true;
goto out;
}