Commit 3ba21113 authored by Roy Spliet's avatar Roy Spliet Committed by Takashi Iwai

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=207043Signed-off-by: default avatarRoy Spliet <nouveau@spliet.org>
Link: https://lore.kernel.org/r/20200413082034.25166-7-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c4c8dd6e
...@@ -2354,8 +2354,10 @@ static int azx_probe_continue(struct azx *chip) ...@@ -2354,8 +2354,10 @@ static int azx_probe_continue(struct azx *chip)
set_default_power_save(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); pm_runtime_put_autosuspend(&pci->dev);
}
out_free: out_free:
if (err < 0) { if (err < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment