mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 00:48:01 +02:00
monitor/alsa: Increase priority for USB devices
We always want the plugged USB ALSA device to have higher priority than the internal ALSA device.
This commit is contained in:
parent
73f52cfb94
commit
84e2fcc050
1 changed files with 4 additions and 0 deletions
|
|
@ -220,6 +220,10 @@ function createNode(parent, id, obj_type, factory, properties)
|
|||
priority = priority + 8
|
||||
end
|
||||
|
||||
if dev_props["device.bus"] == "usb" then
|
||||
priority = priority + 100
|
||||
end
|
||||
|
||||
properties["priority.driver"] = priority
|
||||
properties["priority.session"] = priority
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue