]> 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)
commit05f5c6d5483f883579c05c0e3d385cf9319bf895
treecae0cd0b3d16a800920e3ea579f61b54bfb93619
parent43ae92dd7c5eaf0abef94dfa485a8c6a8af960f2
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