Skip to content

Commit 3ba2111

Browse files
RSpliettiwai
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent c4c8dd6 commit 3ba2111

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/pci/hda/hda_intel.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,8 +2354,10 @@ static int azx_probe_continue(struct azx *chip)
23542354

23552355
set_default_power_save(chip);
23562356

2357-
if (azx_has_pm_runtime(chip))
2357+
if (azx_has_pm_runtime(chip)) {
2358+
pm_runtime_use_autosuspend(&pci->dev);
23582359
pm_runtime_put_autosuspend(&pci->dev);
2360+
}
23592361

23602362
out_free:
23612363
if (err < 0) {

0 commit comments

Comments
 (0)