aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sn95031.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2011-02-09 11:14:32 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-09 17:32:26 -0500
commit1e2f5932e472f11b987e8339ffc855aa00ecebf5 (patch)
tree26a41e766e95efd90f1ac73e4e06b33003567700 /sound/soc/codecs/sn95031.h
parent3d8bc3901067700e790e8cc796aa438cffb5ac80 (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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/sn95031.h b/sound/soc/codecs/sn95031.h
index e2b17d908aeb..2dbae614bac2 100644
--- a/sound/soc/codecs/sn95031.h
+++ b/sound/soc/codecs/sn95031.h
@@ -96,4 +96,13 @@
96#define SN95031_SSR5 0x384 96#define SN95031_SSR5 0x384
97#define SN95031_SSR6 0x385 97#define SN95031_SSR6 0x385
98 98
99#define SN95031_AUDIO_GPIO_CTRL 0x070
100struct mfld_jack_data {
101 int intr_id;
102 int micbias_vol;
103 struct snd_soc_jack *mfld_jack;
104};
105
106extern void sn95031_jack_detection(struct mfld_jack_data *jack_data);
107
99#endif 108#endif