diff options
author | Vinod Koul <vinod.koul@intel.com> | 2011-02-09 21:44:32 +0530 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-02-09 22:32:26 +0000 |
commit | 1e2f5932e472f11b987e8339ffc855aa00ecebf5 (patch) | |
tree | 26a41e766e95efd90f1ac73e4e06b33003567700 /sound/soc/codecs/sn95031.h | |
parent | 3d8bc3901067700e790e8cc796aa438cffb5ac80 (diff) |
ASoC: sn95031: Add jack support in the codec
This patch adds support for jack detection and reporting in the codec
It however is not fully functional as it doesn't measure adc to figure
out what got inserted which will be added later
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Harsha Priya <priya.harsha@intel.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/sn95031.h')
-rw-r--r-- | sound/soc/codecs/sn95031.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/sn95031.h b/sound/soc/codecs/sn95031.h index e2b17d908ae..2dbae614bac 100644 --- a/sound/soc/codecs/sn95031.h +++ b/sound/soc/codecs/sn95031.h @@ -96,4 +96,13 @@ #define SN95031_SSR5 0x384 #define SN95031_SSR6 0x385 +#define SN95031_AUDIO_GPIO_CTRL 0x070 +struct mfld_jack_data { + int intr_id; + int micbias_vol; + struct snd_soc_jack *mfld_jack; +}; + +extern void sn95031_jack_detection(struct mfld_jack_data *jack_data); + #endif |