rules: Don't use ALSA card id in ID_ID
authorAdam Goode <agoode@google.com>
Thu, 23 Apr 2015 01:05:38 +0000 (21:05 -0400)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2015 11:40:54 +0000 (13:40 +0200)
commit0414af1dfe99fe7bd58a7d93427cb6762895729d
tree7f30502e40a353089b6a8946844911709fda746a
parent038f9863e22295d0e22b3b79a6d54f7086525ba2
rules: Don't use ALSA card id in ID_ID

The ALSA id sysattr is generated by the sound subsystem and is not
a stable identifier. It is generated though some string manipulation
then made unique if there is a conflict. This means that it is
enumeration-dependent and shouldn't be used for ID_ID.

If ID_ID is supposed to be system-unique, it is not already since
for firewire it is generated from the guid and there are broken
firewire devices that have duplicate guids across devices.

This is tracked for PulseAudio at
https://bugs.freedesktop.org/show_bug.cgi?id=90129.

This is essentially a revert of systemd
ed1b2d9fc7d5c5bfe2a67b0b8ff9e5ea8694268e.
rules/78-sound-card.rules