ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported
[ Upstream commit 3ba21113bd
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bd074af53c
commit
a323f69d00
|
@ -2303,8 +2303,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) {
|
||||
|
|
Loading…
Reference in New Issue