diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-02-17 19:35:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-02-18 12:14:14 -0500 |
commit | 7887ab3a274dc5f1d1d94ca0cd41ae495d01f94f (patch) | |
tree | 9182cd4d0c2c857688520a50f733d1c9f690039c /include/sound | |
parent | 5a9f91ca7994bd6a7c696fd397716da3bb440921 (diff) |
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')
-rw-r--r-- | include/sound/soc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 4ccf1e4e0dd0..fb57c33482e5 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -436,6 +436,7 @@ struct snd_soc_jack_zone { | |||
436 | * @report: value to report when jack detected | 436 | * @report: value to report when jack detected |
437 | * @invert: report presence in low state | 437 | * @invert: report presence in low state |
438 | * @debouce_time: debouce time in ms | 438 | * @debouce_time: debouce time in ms |
439 | * @wake: enable as wake source | ||
439 | */ | 440 | */ |
440 | #ifdef CONFIG_GPIOLIB | 441 | #ifdef CONFIG_GPIOLIB |
441 | struct snd_soc_jack_gpio { | 442 | struct snd_soc_jack_gpio { |
@@ -444,6 +445,8 @@ struct snd_soc_jack_gpio { | |||
444 | int report; | 445 | int report; |
445 | int invert; | 446 | int invert; |
446 | int debounce_time; | 447 | int debounce_time; |
448 | bool wake; | ||
449 | |||
447 | struct snd_soc_jack *jack; | 450 | struct snd_soc_jack *jack; |
448 | struct delayed_work work; | 451 | struct delayed_work work; |
449 | 452 | ||