ASoC: Use delayed work for debounce of GPIO based jacks
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Oct 2010 22:54:28 +0000 (15:54 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 7 Oct 2010 19:58:56 +0000 (12:58 -0700)
commit4c14d78e8ad3bacfe1f70cb49ae17afcd658e368
treeca487b5abebf8ce0b587434b682070c242e718ea
parentde535a5be53a06738409538c471a10a9de357bdd
ASoC: Use delayed work for debounce of GPIO based jacks

Rather than block the workqueue by sleeping to do the debounce use delayed
work to implement the debounce time. This should also means that we extend
the debounce time on each new bounce, potentially allowing shorter debounce
times for clean insertions.

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