ASoC: wm8994: Prevent double lock of accdet_lock mutex on wm1811
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 16 Jun 2014 20:24:03 +0000 (21:24 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 17 Jun 2014 14:48:04 +0000 (15:48 +0100)
commitb38314179c9ccb789e6fe967cff171fa817e8978
tree10cfd970a63575f4557f67d990fb44568306184d
parent7171511eaec5bf23fb06078f59784a3a0626b38f
ASoC: wm8994: Prevent double lock of accdet_lock mutex on wm1811

wm1811_micd_stop takes the accdet_lock mutex, and is called from two
places, one of which is already holding the accdet_lock. This obviously
causes a lock up.

This patch fixes this issue by removing the lock from wm1811_micd_stop
and ensuring that it is always locked externally.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8994.c