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:
Julian Bouzas 2025-06-26 14:05:06 -04:00
parent 73f52cfb94
commit 84e2fcc050

View file

@ -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