]> git.ipfire.org Git - thirdparty/systemd.git/blame - rules/rules.d/60-persistent-alsa.rules
rules: serial - do not export ID_PORT, use ID_USB_INTERFACE_NUM
[thirdparty/systemd.git] / rules / rules.d / 60-persistent-alsa.rules
CommitLineData
dc544062
LP
1# do not edit this file, it will be overwritten on update
2
4b06c409 3ACTION=="remove", GOTO="persistent_alsa_end"
dc544062
LP
4SUBSYSTEM!="sound", GOTO="persistent_alsa_end"
5KERNEL!="controlC[0-9]*", GOTO="persistent_alsa_end"
6
7SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{program}="usb_id --export %p"
088fbefa
LP
8SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
9ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="?*", SYMLINK+="snd/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_IFACE}"
10ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="", SYMLINK+="snd/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
dc544062
LP
11
12ENV{ID_PATH}=="", IMPORT{program}="path_id %p"
13ENV{ID_PATH}=="?*", SYMLINK+="snd/by-path/$env{ID_PATH}"
14
15LABEL="persistent_alsa_end"