summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorRoy Spliet <nouveau@spliet.org>2020-04-13 10:20:34 +0200
committerTakashi Iwai <tiwai@suse.de>2020-04-13 18:03:29 +0200
commit3ba21113bd33d49f3c300a23fc08cf114c434995 (patch)
treeb986780734b338c329a9967786a16444563ba3e1 /sound
parentALSA: hda: Skip controller resume if not needed (diff)
downloadlinux-3ba21113bd33d49f3c300a23fc08cf114c434995.tar.xz
linux-3ba21113bd33d49f3c300a23fc08cf114c434995.zip
ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported
This fixes runtime PM not working after a suspend-to-RAM cycle at least for the codec-less HDA device found on NVIDIA GPUs. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043 Signed-off-by: Roy Spliet <nouveau@spliet.org> Link: https://lore.kernel.org/r/20200413082034.25166-7-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_intel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 02c6308502b1..8519051a426e 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2354,8 +2354,10 @@ static int azx_probe_continue(struct azx *chip)
set_default_power_save(chip);
- if (azx_has_pm_runtime(chip))
+ if (azx_has_pm_runtime(chip)) {
+ pm_runtime_use_autosuspend(&pci->dev);
pm_runtime_put_autosuspend(&pci->dev);
+ }
out_free:
if (err < 0) {