mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 04:10:03 +01:00
This patch improves the bluetooth profile autoswitch so that it works with any application that wants to capture from a bluetooth device. To do so, a loopback source filter is created per connected bluetooth device. If an application wants to capture audio from such loopback source filter, the profile in the associated bluetooth device is changed to HSP/HFP. If there isn't any application connected to the loopback source filter, the profile switches back to A2DP.
16 lines
331 B
Lua
16 lines
331 B
Lua
-- WirePlumber
|
|
--
|
|
-- Copyright © 2022 Collabora Ltd.
|
|
--
|
|
-- SPDX-License-Identifier: MIT
|
|
|
|
-- Bluetooth settings manager
|
|
|
|
local settings_manager = require ("settings-manager")
|
|
|
|
local defaults = {
|
|
["use-persistent-storage"] = true,
|
|
["autoswitch-to-headset-profile"] = true
|
|
}
|
|
|
|
return settings_manager.new ("bluetooth.", defaults)
|