Patch "ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hda-explicitly-permit-using-autosuspend-if-runt.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 638a03774f0d91a6a4c3ffed6905a09513af43e9
Author: Roy Spliet <nouveau@xxxxxxxxxx>
Date:   Mon Apr 13 10:20:34 2020 +0200

    ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported
    
    [ 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@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200413082034.25166-7-tiwai@xxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 72c268e887e55..ff448abb5449f 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -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)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux