diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2009-11-12 09:14:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-12 17:45:53 +0100 |
commit | c871a05315d1a76034ea06feeda92081e1d608bf (patch) | |
tree | c19ab719a75eeeac84843aa76a69ceba03fa9328 /sound/soc/soc-jack.c | |
parent | ASoC: move setting ac97 platformdata earlier than ac97 read/write (diff) | |
download | linux-c871a05315d1a76034ea06feeda92081e1d608bf.tar.xz 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 'sound/soc/soc-jack.c')
-rw-r--r-- | sound/soc/soc-jack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 12124149601e..3c07a94c2e30 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -163,6 +163,9 @@ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio) else report = 0; + if (gpio->jack_status_check) + report = gpio->jack_status_check(); + snd_soc_jack_report(jack, report, gpio->report); } |