summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorJoonyoung Shim2009-11-12 09:14:04 +0100
committerMark Brown2009-11-12 17:45:53 +0100
commitc871a05315d1a76034ea06feeda92081e1d608bf (patch)
treec19ab719a75eeeac84843aa76a69ceba03fa9328 /include/sound/soc.h
parentASoC: move setting ac97 platformdata earlier than ac97 read/write (diff)
downloadkernel-qcow2-linux-c871a05315d1a76034ea06feeda92081e1d608bf.tar.gz
kernel-qcow2-linux-c871a05315d1a76034ea06feeda92081e1d608bf.tar.xz
kernel-qcow2-linux-c871a05315d1a76034ea06feeda92081e1d608bf.zip
ASoC: Add jack_status_check callback function for GPIO jacks
The jack_status_check callback function is the interface to check the status of the jack. Some target provides the method to distinguish what is the jack inserted - headphone jack, microphone jack, tvout jack, etc, so we can implement it using the jack_status_check function. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 310a21949a3e..13b117aac5d9 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -332,6 +332,8 @@ struct snd_soc_jack_gpio {
int debounce_time;
struct snd_soc_jack *jack;
struct work_struct work;
+
+ int (*jack_status_check)(void);
};
#endif