scripts: bluez: Autoconnect bap-sink stream on peripheral/acceptor

This commit is contained in:
Frédéric Danis 2022-08-08 09:55:25 +02:00
parent 57518ed2ce
commit 591f2e77e9

View file

@ -75,6 +75,7 @@ function createNode(parent, id, type, factory, properties)
-- autoconnect if it's a stream
if properties["api.bluez5.profile"] == "headset-audio-gateway" or
properties["api.bluez5.profile"] == "bap-sink" or
factory:find("a2dp.source") or factory:find("media.source") then
properties["node.autoconnect"] = true
end