]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Workaround for spurious wakeups on some Intel platforms
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Jul 2020 16:44:43 +0000 (18:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Jul 2020 16:45:38 +0000 (18:45 +0200)
commitda39ec87def95f2e4d1c599799f3b58aee7b8db9
tree7730334474e0b16c765ddb9771c60fb97300fc58
parentf5f7a576383fec12cb65a3c588ff4f3bd5d6fb39
ALSA: hda: Workaround for spurious wakeups on some Intel platforms

We've received a regression report on Intel HD-audio controller that
wakes up immediately after S3 suspend.  The bisection leads to the
commit efac3eb6c747 ("ALSA: hda: Skip controller resume if not
needed").  This commit replaces the system-suspend to use
pm_runtime_force_suspend() instead of the direct call of
__azx_runtime_suspend().  However, by some really mysterious reason,
pm_runtime_force_suspend() causes a spurious wakeup (although it calls
the same __azx_runtime_suspend() internally).

As an ugly workaround for now, revert the behavior to call
__azx_runtime_suspend() and __azx_runtime_resume() for those old Intel
platforms that may exhibit such a problem, while keeping the new
standard pm_runtime_force_suspend() and pm_runtime_force_resume()
pair for the remaining chips.

Fixes: efac3eb6c747 ("ALSA: hda: Skip controller resume if not needed")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208649
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200727164443.4233-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c