Skip to content

Commit 917ae64

Browse files
committed
78-sound-card.rules: Import ID_PATH early
Pipewire requires ID_PATH to use the same device names as with systemd's udev. Some rules, such as the ones in asahi-audio [1] use those names, and fail if they don't match [2]. On systemd's udev this is instead imported in 71-seat.rules, which we don't have. [1]: https://github.com/AsahiLinux/asahi-audio [2]: AsahiLinux/asahi-audio#16 Signed-off-by: Johannes Nixdorf <[email protected]>
1 parent ddfdf86 commit 917ae64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/78-sound-card.rules

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ KERNEL!="card*", GOTO="sound_end"
3838
ENV{SOUND_INITIALIZED}="1"
3939

4040
IMPORT{builtin}="hwdb"
41+
IMPORT{builtin}="path_id"
42+
4143
SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
4244
SUBSYSTEMS=="usb", GOTO="skip_pci"
4345

@@ -62,8 +64,6 @@ LABEL="skip_pci"
6264
ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_USB_INTERFACE_NUM}"
6365
ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}"
6466

65-
IMPORT{builtin}="path_id"
66-
6767
# The values used here for $SOUND_FORM_FACTOR and $SOUND_CLASS should be kept
6868
# in sync with those defined for PulseAudio's src/pulse/proplist.h
6969
# PA_PROP_DEVICE_FORM_FACTOR, PA_PROP_DEVICE_CLASS properties.

0 commit comments

Comments
 (0)