From 76b26deabfe44bfbd9ac73e467d8138503444698 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 18 Mar 2026 21:53:33 +0200 Subject: [PATCH] monitors/bluez: Don't set api.bluez5.internal=true on HFP HF streams Setting api.bluez5.internal=true changes media.class to Audio/(Stream|Sink)/Internal which makes HFP HF output get wrong media class. Don't set this for headset-audio-gateway. Fixes HFP HF stream media class. --- src/scripts/monitors/bluez.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/monitors/bluez.lua b/src/scripts/monitors/bluez.lua index 62a4aa1e..347e1bc7 100644 --- a/src/scripts/monitors/bluez.lua +++ b/src/scripts/monitors/bluez.lua @@ -301,7 +301,9 @@ function createNode(parent, id, type, factory, properties) if factory == "api.bluez5.sco.source" or (factory == "api.bluez5.a2dp.source" and cutils.parseBool (properties["api.bluez5.a2dp-duplex"])) then properties["bluez5.loopback"] = false - properties["api.bluez5.internal"] = true + if properties["api.bluez5.profile"] ~= "headset-audio-gateway" then + properties["api.bluez5.internal"] = true + end end local node = LocalNode("adapter", properties)