ASoC: Implement interrupt based WM8994 microphone detection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 29 Mar 2010 19:57:12 +0000 (20:57 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Apr 2010 18:18:12 +0000 (19:18 +0100)
commit8876698406147986a9a7748586a54c4b14514c0e
tree6353c911b3d62ffb67c44d1459436fd434992546
parentddf438cf2a6de9aa47783a45907e1188b9437ff7
ASoC: Implement interrupt based WM8994 microphone detection

Support interrupt based microphone bias detection. The WM8994 has two
microphone bias supplies, with detection supported on both. Detection
using GPIOs together with the standard GPIO based jack framework is
already supported via the platform data for the WM8994 core driver.

Note that as well as the microphone bias itself the system clock and
whichever AIF clock is supplying the system clock will need to be
enabled for detection to function.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.h