From: Takashi Iwai Date: Wed, 12 Dec 2012 10:50:12 +0000 (+0100) Subject: ALSA: hda - Move runtime PM check to runtime_idle callback X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~39^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eb827d23577a4efec2b10a9c4cc9ded268a1d1c;p=pandora-kernel.git 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 Cc: [v3.7] Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed