]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Move runtime PM check to runtime_idle callback
authorTakashi Iwai <tiwai@suse.de>
Wed, 12 Dec 2012 10:50:12 +0000 (11:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Dec 2012 13:22:13 +0000 (14:22 +0100)
commit60253f6e9ef9ae768f90f1bc505bd735d3742524
tree15da2e13f08a9f56215397ebea3cd60b7c1dfd6c
parenta92aec7429d6c7dddc2b1845be6c8f1e2020612d
ALSA: hda - Move runtime PM check to runtime_idle callback

The runtime_idle callback is the right place to check the suspend
capability, but currently we do it wrongly in the runtime_suspend
callback.  This leads to a kernel error message like:
   pci_pm_runtime_suspend(): azx_runtime_suspend+0x0/0x50 [snd_hda_intel] returns -11
and the runtime PM core would even repeat the attempts.

Reported-and-tested-by: Borislav Petkov <bp@alien8.de>
Cc: <stable@vger.kernel.org> [v3.7]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c