]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Prevent system suspend while debouncing wakeup capable GPIO jacks
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 14 Nov 2010 19:25:09 +0000 (19:25 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Nov 2010 11:44:43 +0000 (11:44 +0000)
commit77fe6702422ef7cb6fe8572e928a8f11a3684bec
treec986b44b9b23214122f028f0cda4fafcff80391f
parent4cc9ca130818d38f0077c85cdf0369bba0c7aa12
ASoC: Prevent system suspend while debouncing wakeup capable GPIO jacks

If the device associated with a GPIO jack is wakeup capable then disable
suspend while we're debouncing the jack so that we skip suspends that race
with the jack.

Note that currently the GPIO based jack has a CODEC associated with it
which we're using right now. These jacks should be reparented against the
card itself and this code adjusted.

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