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>
This commit is contained in:
parent
c4c8dd6ef8
commit
3ba21113bd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user