mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-03 11:28:01 +02:00
bluez5: autoconnect bluetooth stream nodes
This commit is contained in:
parent
c1f1614eb6
commit
dd887a7b3e
1 changed files with 6 additions and 0 deletions
|
|
@ -73,6 +73,12 @@ function createNode(parent, id, type, factory, properties)
|
|||
properties["priority.session"] = priority
|
||||
end
|
||||
|
||||
-- autoconnect if it's a stream
|
||||
if properties["api.bluez5.profile"] == "headset-audio-gateway" or
|
||||
factory:find("a2dp.source") then
|
||||
properties["node.autoconnect"] = true
|
||||
end
|
||||
|
||||
-- apply properties from config.rules
|
||||
rulesApplyProperties(properties)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue