mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
a5de5b74a5
commit
73548dd316
2 changed files with 31 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue