package: alsa-utils Version: 1.2.14-1 Severity: important Tags: patch trixie X-Debbugs-Cc: (none)
Dear Maintainer, On trixie, /usr/lib/udev/rules.d/90-alsa-restore.rules has the label "alsa_restore_go" twice and no label "alsa_restore_std". Two GOTO lines jump to "alsa_restore_std". udev drops them and logs, for example with "udevadm test --action=add /sys/class/sound/controlC0": 90-alsa-restore.rules:18 GOTO="alsa_restore_std" has no matching label, ignoring. 90-alsa-restore.rules:22 GOTO="alsa_restore_std" has no matching label, ignoring. So every card falls through into the branch meant for combined AMD ACP cards. That branch imports ALSA_CARD_NUMBER from /run/udev/alsa-hda-analog-card. The file holds one line for each HDA analog card registered so far, and the import uses the last one. When a second HDA card registers after the first one, its udev event runs "alsactl restore <first card>" instead of restoring itself. The second card keeps its driver defaults until some other restore runs. Seen on a machine with an onboard Realtek HDA card (card 2, registered first) and a PCIe HDA sound card (card 0, registered about 4 s later because its codec loads DSP firmware). The saved mixer level of card 0 was never restored by udev; "alsactl restore 0" run by hand restored it. Cause: debian/patches/udev_test_alsactl.patch. Upstream fixed the label in 2024 (alsa-utils commit f90124c, "alsactl: 90-alsa-restore.rules - fix alsa_restore_go/std"), but the Debian patch in 1.2.14-1 still carries "LABEL="alsa_restore_go"" in its context and so puts the old label back. alsa-utils 1.2.16-1 has the patch refreshed with LABEL="alsa_restore_std", so unstable is not affected. Suggested fix for trixie: refresh udev_test_alsactl.patch so that the label before the two RUN+= lines is "alsa_restore_std", as in 1.2.16-1: In alsactl/90-alsa-restore.rules.in after the patch, the label line directly before the two "TEST... RUN+=.../alsactl ... restore" lines should read LABEL="alsa_restore_std" instead of LABEL="alsa_restore_go". Workaround for affected users: none in the rules file (it is overwritten on update); "alsactl restore" from a later service, or a local copy of the rule in /etc/udev/rules.d/ with the label corrected. -- System Information: Debian Release: 13 (trixie) Kernel: 6.12.x (Debian), amd64 alsa-utils 1.2.14-1, systemd/udev 257
publickey - [email protected] - 0x42A63E14.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature

