ALSA: hda: Reinstate runtime_allow() for all hda controllers
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 27 Oct 2020 13:00:38 +0000 (21:00 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Oct 2020 08:43:28 +0000 (09:43 +0100)
The broken jack detection should be fixed by commit a6e7d0a4bdb0 ("ALSA:
hda: fix jack detection with Realtek codecs when in D3"), let's try
enabling runtime PM by default again.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20201027130038.16463-4-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c

index be83f17..d539f52 100644 (file)
@@ -2362,6 +2362,7 @@ static int azx_probe_continue(struct azx *chip)
 
        if (azx_has_pm_runtime(chip)) {
                pm_runtime_use_autosuspend(&pci->dev);
+               pm_runtime_allow(&pci->dev);
                pm_runtime_put_autosuspend(&pci->dev);
        }