Skip to content

Commit 9a64184

Browse files
jason77-wangtiwai
authored andcommitted
ALSA: hda: call runtime_allow() for all hda controllers
Before the pci_driver->probe() is called, the pci subsystem calls runtime_forbid() and runtime_get_sync() on this pci dev, so only call runtime_put_autosuspend() is not enough to enable the runtime_pm on this device. For controllers with vgaswitcheroo feature, the pci/quirks.c will call runtime_allow() for this dev, then the controllers could enter rt_idle/suspend/resume, but for non-vgaswitcheroo controllers like Intel hda controllers, the runtime_pm is not enabled because the runtime_allow() is not called. Since it is no harm calling runtime_allow() twice, here let hda driver call runtime_allow() for all controllers. Then the runtime_pm is enabled on all controllers after the put_autosuspend() is called. Signed-off-by: Hui Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent f8e4ae1 commit 9a64184

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/pci/hda/hda_intel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,7 @@ static int azx_probe_continue(struct azx *chip)
23562356

23572357
if (azx_has_pm_runtime(chip)) {
23582358
pm_runtime_use_autosuspend(&pci->dev);
2359+
pm_runtime_allow(&pci->dev);
23592360
pm_runtime_put_autosuspend(&pci->dev);
23602361
}
23612362

0 commit comments

Comments
 (0)