Commit 6d0e94e4 authored by Roy Spliet's avatar Roy Spliet Committed by Greg Kroah-Hartman

ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported

[ Upstream commit 3ba21113 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fc6fa39f
......@@ -2475,8 +2475,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 ((chip->driver_caps & AZX_DCAPS_I915_POWERWELL)
......
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