]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: interwave: add ISA and PnP suspend and resume callbacks
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Tue, 7 Apr 2026 15:35:43 +0000 (12:35 -0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Apr 2026 07:55:03 +0000 (09:55 +0200)
commit6f800c3397b7f64da4c9eb636a1206f8d8636c95
tree593582fe9b1e5bc72d4b61b691ad08b95f8a9526
parent19cbb3e0c27f28feb7781641994226cb2ee206a2
ALSA: interwave: add ISA and PnP suspend and resume callbacks

interwave still leaves both its ISA and PnP PM callbacks disabled even
though the shared GUS suspend and resume path now exists.

This board needs InterWave-specific glue around the shared GUS PM path.
The attached WSS codec has its own register image that must be saved and
restored across suspend, the InterWave-specific GF1 compatibility,
decode, MPU401, and emulation settings must be rewritten after the
shared GF1 resume path reinitializes the chip, and the probe-detected
InterWave memory layout must be restored without rerunning the
destructive DRAM/ROM detection path.

Track the optional STB TEA6330T bus at probe time, restore its cached
mixer state after resume, add resume-safe helpers for the InterWave
register and memory-configuration state, and wire both the ISA and PnP
front-ends up to the shared GUS PM helpers.

The resume path intentionally restores only the cached hardware setup.
It does not attempt to preserve sample RAM contents across suspend.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260407-alsa-interwave-pm-v2-3-8dd96c6129e9@gmail.com
sound/isa/gus/interwave.c