mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-25 06:40:04 +01:00
bluez: Don't create loopback source if autoswitch setting is disabled
This commit is contained in:
parent
be9259d952
commit
789b526c61
1 changed files with 5 additions and 0 deletions
|
|
@ -432,6 +432,11 @@ function checkProfiles (dev)
|
||||||
local device_id = dev["bound-id"]
|
local device_id = dev["bound-id"]
|
||||||
local props = dev.properties
|
local props = dev.properties
|
||||||
|
|
||||||
|
-- Don't create loopback source device if autoswitch is disabled
|
||||||
|
if not Settings.get_boolean ("bluetooth.autoswitch-to-headset-profile") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Get the associated BT SpaDevice
|
-- Get the associated BT SpaDevice
|
||||||
local internal_id = tostring (props["api.bluez5.id"])
|
local internal_id = tostring (props["api.bluez5.id"])
|
||||||
local spa_device = monitor:get_managed_object (internal_id)
|
local spa_device = monitor:get_managed_object (internal_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue