From 1efe02becdb2e15a2a79ec970cc1f2209da995d8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 8 Mar 2022 15:42:11 +0100 Subject: sif: ... --- .../wireplumber/bluetooth.lua.d/50-bluez-config.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua (limited to 'accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua') diff --git a/accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua b/accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua new file mode 100644 index 00000000..948b7dfa --- /dev/null +++ b/accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua @@ -0,0 +1,20 @@ +rule = { + matches = { + { + { "device.name", "matches", "bluez_card.*" }, + }, + }, + apply_properties = { + ["bluez5.auto-connect"] = "[ hfp_hf hsp_hs a2dp_sink ]", + }, +} + +table.insert(bluez_monitor.rules,rule) + +bluez_monitor.properties = { + ["bluez5.enable-msbc"] = true, + ["bluez5.enable-sbc-xq"] = true, + ["bluez5.enable-hw-volume"] = false, + ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]", + ["bluez5.codecs"] = "[ sbc sbc_xq aac ldac aptx aptx_hd aptx_ll aptx_ll_duplex faststream faststream_duplex ]", +} -- cgit v1.2.3