summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sn95031.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2011-02-09 17:14:32 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-09 23:32:26 +0100
commit1e2f5932e472f11b987e8339ffc855aa00ecebf5 (patch)
tree26a41e766e95efd90f1ac73e4e06b33003567700 /sound/soc/codecs/sn95031.h
parentASoC: Tegra: Harmony: Add switch control for speaker (diff)
downloadlinux-1e2f5932e472f11b987e8339ffc855aa00ecebf5.tar.xz
linux-1e2f5932e472f11b987e8339ffc855aa00ecebf5.zip
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 @@
#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