summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2017-03-21 16:50:43 -0700
committerMark Brown <broonie@kernel.org>2017-03-24 18:52:32 +0000
commit73548dd316adec41172c31d63a0c35a97bf9577f (patch)
tree59f3dbda933d0449cf09beb045544d902f5a1b07 /include/sound
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
downloadlinux-73548dd316adec41172c31d63a0c35a97bf9577f.tar.bz2
ASoC: jack - check status of GPIO-based pins on resume
For GPIO-backed pins that are not configured as wakeup sources, we may miss change in their state that happens while system is suspended. Let's use PM notifier to refresh their state upon resume. Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 2b502f6cc6d0..1d20abec4995 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -722,6 +722,7 @@ struct snd_soc_jack_gpio {
/* private: */
struct snd_soc_jack *jack;
struct delayed_work work;
+ struct notifier_block pm_notifier;
struct gpio_desc *desc;
void *data;