1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| -- Force Bluetooth devices to prefer A2DP profile (safe for WirePlumber 0.5+)
local rule = {
matches = {
{
{ "device.name", "matches", "bluez_card.*" },
},
},
apply_properties = {
["bluez5.auto-connect"] = "[ a2dp_sink ]",
["bluez5.hw-volume"] = true,
["device.profile"] = "a2dp-sink",
},
}
table.insert(alsa_monitor.rules, rule)
|