ASoC: Use pm_wakeup_event() in WM8962 jack detection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Nov 2010 18:45:07 +0000 (14:45 -0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Nov 2010 20:16:48 +0000 (16:16 -0400)
Ensure that the system does not suspend while we process a WM8962 jack
event by using pm_wakeup_event() to block the suspend while we're waiting
for the jack to settle. Use a slightly longer timeout than the jack waits
to allow for other stuff to take over and delays in scheduling.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>

No differences found