]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Implement interrupt based jack detection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 Sep 2010 22:37:53 +0000 (15:37 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Oct 2010 21:23:26 +0000 (14:23 -0700)
commitb6942285ac95040b48cffd0145215256f8f6eca6
tree09a31bf794d410f94f604afa45dd816c46a4efa6
parent40fa65762f8df74239a7e51673c078a14626b4f7
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