]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8994: Prevent ABBA deadlock with CODEC and accdet mutexes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Mar 2012 16:31:50 +0000 (16:31 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Mar 2012 18:12:09 +0000 (18:12 +0000)
commit1b47824bd04de01ec0310f7fbe128b5294da6833
treecae0cd0b3d16a800920e3ea579f61b54bfb93619
parent036d9db89505c313446f27a622ab872706b73410
ASoC: wm8994: Prevent ABBA deadlock with CODEC and accdet mutexes

Currently we can the accdet mutex from within DAPM when updating the device
state which means we take accdet then the CODEC mutex but we also do the
locking the other way around when responding to the jackdet IRQ. Move all
the jackdet use of the CODEC mutex out of the accdet lock to avoid this.
Since all the DAPM interactions depend only on a single threaded IRQ this
is still serialised.

The locking improvements in 3.5 allow a better solution there.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c