projects
/
wrapfs-3.2.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd074af
)
ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported
author
Roy Spliet
<nouveau@spliet.org>
Mon, 13 Apr 2020 08:20:34 +0000
(10:20 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 2 May 2020 06:48:56 +0000
(08:48 +0200)
[ Upstream commit
3ba21113bd33d49f3c300a23fc08cf114c434995
]
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>
sound/pci/hda/hda_intel.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_intel.c
b/sound/pci/hda/hda_intel.c
index fbffec2ab2372d7dd22b6a55ecd3b06012327fa9..a85b0cf7371a30dca86acfd513863ac5acb7051e 100644
(file)
--- a/
sound/pci/hda/hda_intel.c
+++ b/
sound/pci/hda/hda_intel.c
@@
-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) {