diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-01 19:28:35 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-20 07:27:10 +0200 |
commit | 873be895ed1fe65010fb84c6b71e2ec0a6b6fc91 (patch) | |
tree | 4dc0f229a4c4585136f1b06ce516c2df196b2a68 /rules.d/60-persistent-alsa.rules | |
parent | udev-builtin-path_id: split out add_id_tag() (diff) | |
download | systemd-873be895ed1fe65010fb84c6b71e2ec0a6b6fc91.tar.xz systemd-873be895ed1fe65010fb84c6b71e2ec0a6b6fc91.zip |
udev: add USB revision in ID_PATH
xHCI host controller may register two (or more?) USB root hubs for USB
2.0 and USB 3.0, and devices under the hubs may have same ID_PATH.
So, to avoid the conflict, let's introduce ID_PATH_WITH_USB_REVISION
that includes the USB revision.
Closes #19406.
Diffstat (limited to 'rules.d/60-persistent-alsa.rules')
-rw-r--r-- | rules.d/60-persistent-alsa.rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.d/60-persistent-alsa.rules b/rules.d/60-persistent-alsa.rules index 8154e2dbb5..466ab1c151 100644 --- a/rules.d/60-persistent-alsa.rules +++ b/rules.d/60-persistent-alsa.rules @@ -9,6 +9,7 @@ ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="?*", SYMLINK+="snd/by-id/$env{ ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="", SYMLINK+="snd/by-id/$env{ID_BUS}-$env{ID_SERIAL}" IMPORT{builtin}="path_id" -ENV{ID_PATH}=="?*", SYMLINK+="snd/by-path/$env{ID_PATH}" +ENV{ID_PATH}=="?*", SYMLINK+="snd/by-path/$env{ID_PATH}" +ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="snd/by-path/$env{ID_PATH_WITH_USB_REVISION}" LABEL="persistent_alsa_end" |