summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8903.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-03-15 21:22:58 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-03-16 15:57:43 +0000
commit7245387e36e16ae918467685c34510606fd74b7c (patch)
tree40ecf5eb8fb9eaa287c37d0dd99645380d3b0b90 /sound/soc/codecs/wm8903.h
parent8abd16a65d81756706016720e2cc7eeb81d06a2e (diff)
downloadop-kernel-dev-7245387e36e16ae918467685c34510606fd74b7c.zip
op-kernel-dev-7245387e36e16ae918467685c34510606fd74b7c.tar.gz
ASoC: Implement interrupt driven microphone detection for WM8903
Support use of the WM8903 IRQ for reporting of microphone presence and short detection. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8903.h')
-rw-r--r--sound/soc/codecs/wm8903.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8903.h b/sound/soc/codecs/wm8903.h
index 8f19a24..ce384a2 100644
--- a/sound/soc/codecs/wm8903.h
+++ b/sound/soc/codecs/wm8903.h
@@ -18,6 +18,10 @@
extern struct snd_soc_dai wm8903_dai;
extern struct snd_soc_codec_device soc_codec_dev_wm8903;
+extern int wm8903_mic_detect(struct snd_soc_codec *codec,
+ struct snd_soc_jack *jack,
+ int det, int shrt);
+
#define WM8903_MCLK_DIV_2 1
#define WM8903_CLK_SYS 2
#define WM8903_BCLK 3
OpenPOWER on IntegriCloud