summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-17 16:35:55 -0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-18 09:14:14 -0800
commit7887ab3a274dc5f1d1d94ca0cd41ae495d01f94f (patch)
tree9182cd4d0c2c857688520a50f733d1c9f690039c /include/sound/soc.h
parent5a9f91ca7994bd6a7c696fd397716da3bb440921 (diff)
downloadop-kernel-dev-7887ab3a274dc5f1d1d94ca0cd41ae495d01f94f.zip
op-kernel-dev-7887ab3a274dc5f1d1d94ca0cd41ae495d01f94f.tar.gz
ASoC: Allow GPIO jack detection to be configured as a wake source
Some systems wish to use jacks as wake sources. Provide a wake flag in the GPIO configuration which causes the driver to enable the IRQ as a wake source. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 4ccf1e4..fb57c33 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -436,6 +436,7 @@ struct snd_soc_jack_zone {
* @report: value to report when jack detected
* @invert: report presence in low state
* @debouce_time: debouce time in ms
+ * @wake: enable as wake source
*/
#ifdef CONFIG_GPIOLIB
struct snd_soc_jack_gpio {
@@ -444,6 +445,8 @@ struct snd_soc_jack_gpio {
int report;
int invert;
int debounce_time;
+ bool wake;
+
struct snd_soc_jack *jack;
struct delayed_work work;
OpenPOWER on IntegriCloud