ASoC: Implement interrupt based jack detection
commit7711308ae68900a047782f5fe1bd46196ea8be0e
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 Sep 2010 22:37:53 +0000 (30 15:37 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Oct 2010 21:23:26 +0000 (2 14:23 -0700)
tree09a31bf794d410f94f604afa45dd816c46a4efa6
parent3367b8d4278d1f8a28995cc5e57a995f7147cb73
ASoC: Implement interrupt based jack detection

Allow microphone detection on WM8962 to be performed using the interrupt
signal, allowing the detection of both microphone presence and button
presses with a signal singal from the CODEC to CPU.  Currently a 250ms
debounce time is applied to both short circuit and presence detection,
this has not been optimised.

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