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>
This commit is contained in:
Vinod Koul
2011-02-09 21:44:32 +05:30
committed by Mark Brown
parent 3d8bc39010
commit 1e2f5932e4
2 changed files with 65 additions and 0 deletions

View File

@@ -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