alsa-project/alsa-utils issue #244 was opened from hrdl-github:
Since ef0e588c76fbad4112193d311e51a60d18b44282, `alsactl restore $attr{device/number}` has been used instead of `alsactl restore $attr{number}`. On my system this results in an empty expansion, causing unwanted changes in volume (see https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/516). The `card*` kernel does have a `number` attribute though:
``` looking at device '/devices/pci0000:00/0000:00:1f.3/sound/card1/controlC1': KERNEL=="controlC1" SUBSYSTEM=="sound" DRIVER=="" ATTR{power/control}=="auto" ATTR{power/runtime_active_time}=="0" ATTR{power/runtime_status}=="unsupported" ATTR{power/runtime_suspended_time}=="0"
looking at parent device '/devices/pci0000:00/0000:00:1f.3/sound/card1': KERNELS=="card1" SUBSYSTEMS=="sound" DRIVERS=="" ATTRS{id}=="PCH" ATTRS{number}=="1" ATTRS{power/control}=="auto" ATTRS{power/runtime_active_time}=="0" ATTRS{power/runtime_status}=="unsupported" ATTRS{power/runtime_suspended_time}=="0" ```
Issue URL : https://github.com/alsa-project/alsa-utils/issues/244 Repository URL: https://github.com/alsa-project/alsa-utils