ALSA: ymfpci: Store additional legacy registers on suspend
authorTasos Sahanidis <tasos@tasossah.com>
Wed, 29 Mar 2023 04:14:40 +0000 (07:14 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Mar 2023 06:28:35 +0000 (08:28 +0200)
commit4fa4a14773fbf1cd848aaec4f7cf129816d7b2f1
tree7c0d42331c086e8c50e3129ea3ea014586bf9c52
parent39fef76ce533dd1fe3b55e929cdceb3269a91c99
ALSA: ymfpci: Store additional legacy registers on suspend

YMF744 and newer store the base IO ports in separate PCI config registers.

Since these registers were not restored, when set to a non-default value,
features that rely on them (FM, MPU401, gameport) were not functional
after restore, as their respective IO ports were reset to their defaults.

Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Link: https://lore.kernel.org/r/20230329041440.177363-5-tasos@tasossah.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ymfpci/ymfpci.h
sound/pci/ymfpci/ymfpci_main.c