]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:31 +0000 (09:18 -0800)
commiteeada90a5340368310a59c4b620982055fb022f0
tree5c414e5bd0d51a1c9042bfcef1488f183b8a7d34
parent8be35acfe0265662971b77b09bced6cf28781325
ALSA: hda - Move runtime PM check to runtime_idle callback

commit 6eb827d23577a4efec2b10a9c4cc9ded268a1d1c upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_intel.c