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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Dmitry Torokhov 2017-03-21 16:50:43 -07:00 • committed by Mark Brown
commit 73548dd316
2 changed files with 31 additions and 0 deletions

View file

@ -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;