monitors/bluez: fix BAP device set node naming

It is intended that its name is the actual device node name.
Fix this, as it was broken in some recent changes.
This commit is contained in:
Pauli Virtanen
2024-04-06 21:59:16 +03:00
parent 8ee351838d
commit 9d7c6b85d0

View File

@@ -171,7 +171,6 @@ end)
function createSetNode(parent, id, type, factory, properties)
local args = {}
local name
local target_class
local stream_class
local rules = {}
@@ -181,12 +180,10 @@ function createSetNode(parent, id, type, factory, properties)
local channels = channels_json:parse ()
if properties["media.class"] == "Audio/Sink" then
name = "bluez_output_internal"
args["combine.mode"] = "sink"
target_class = "Audio/Sink/Internal"
stream_class = "Stream/Output/Audio/Internal"
else
name = "bluez_input_internal"
args["combine.mode"] = "source"
target_class = "Audio/Source/Internal"
stream_class = "Stream/Input/Audio/Internal"
@@ -214,7 +211,6 @@ function createSetNode(parent, id, type, factory, properties)
)
end
properties["node.name"] = name
properties["node.virtual"] = false
properties["device.api"] = "bluez5"
properties["api.bluez5.set.members"] = nil