mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
sound: include ALSA sound card id in ID_ID property
If two USB sound cards that have the same serial number are plugged in make sure ID_ID is unique at least during runtime, by including the ALSA card id in the ID_ID string. Fixes issues like this one: http://pulseaudio.org/ticket/661
This commit is contained in:
parent
081be002ea
commit
ed1b2d9fc7
@ -48,8 +48,8 @@ SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_
|
||||
|
||||
LABEL="skip_pci"
|
||||
|
||||
ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_IFACE}"
|
||||
ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}"
|
||||
ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_IFACE}-$attr{id}"
|
||||
ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$attr{id}"
|
||||
|
||||
ENV{ID_PATH}=="", IMPORT{program}="path_id %p/controlC%n"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user