]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: hda: Keep PM disablement for deny-listed instance
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Jul 2024 14:15:16 +0000 (16:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Jul 2024 05:45:49 +0000 (07:45 +0200)
commit8abe0423ddd3ca7b9cea09c0a39249f65e646768
tree1cff2583d27904ac77241242a458c69853e2c002
parent0642a3c5cacc0321c755d45ae48f2c84475469a6
ALSA: hda: Keep PM disablement for deny-listed instance

We have a runtime PM deny-list for the devices that show the problems
(typically click noises) at runtime suspend/resume, and when it
matches, the driver disables the default runtime PM.  However, we
still allow the runtime PM changed via power_save module option
dynamically, and the desktop system often tweaks it.  This ended up
with a re-enablement of the runtime PM that surprises users, suddenly
suffering from the noises.

This patch changes the driver behavior slightly: when the device is
listed in the deny-list, ignore the power_save option change and keep
the original (that is, off) runtime PM state.

Link: https://patch.msgid.link/20240729141519.18398-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_intel.h