aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8962.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-09-30 18:37:53 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-02 17:23:26 -0400
commit7711308ae68900a047782f5fe1bd46196ea8be0e (patch)
tree09a31bf794d410f94f604afa45dd816c46a4efa6 /sound/soc/codecs/wm8962.h
parent3367b8d4278d1f8a28995cc5e57a995f7147cb73 (diff)
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>
Diffstat (limited to 'sound/soc/codecs/wm8962.h')
-rw-r--r--sound/soc/codecs/wm8962.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8962.h b/sound/soc/codecs/wm8962.h
index fce11998b278..2af6c9371fcc 100644
--- a/sound/soc/codecs/wm8962.h
+++ b/sound/soc/codecs/wm8962.h
@@ -14,6 +14,7 @@
14#define _WM8962_H 14#define _WM8962_H
15 15
16#include <asm/types.h> 16#include <asm/types.h>
17#include <sound/soc.h>
17 18
18#define WM8962_SYSCLK_MCLK 1 19#define WM8962_SYSCLK_MCLK 1
19#define WM8962_SYSCLK_FLL 2 20#define WM8962_SYSCLK_FLL 2
@@ -3785,4 +3786,6 @@ struct wm8962_reg_access {
3785extern 3786extern
3786const struct wm8962_reg_access wm8962_reg_access[WM8962_MAX_REGISTER + 1]; 3787const struct wm8962_reg_access wm8962_reg_access[WM8962_MAX_REGISTER + 1];
3787 3788
3789int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack);
3790
3788#endif 3791#endif