modules: hardware: bluetooth: use 'wireplumber'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bruno BELANYI 2023-03-28 15:27:56 +00:00
parent 4183f7b963
commit 642e58fc22

View file

@ -25,41 +25,22 @@ in
package = pkgs.pulseaudioFull; package = pkgs.pulseaudioFull;
}; };
services.pipewire = { environment.etc = {
media-session.config.bluez-monitor.rules = [ "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
{ bluez_monitor.properties = {
# Matches all cards -- SBC XQ provides better audio
matches = [{ "device.name" = "~bluez_card.*"; }]; ["bluez5.enable-sbc-xq"] = true,
actions = {
"update-props" = { -- mSBC provides better audio + microphone
"bluez5.reconnect-profiles" = [ ["bluez5.enable-msbc"] = true,
"hfp_hf"
"hsp_hs" -- Synchronize volume with bluetooth device
"a2dp_sink" ["bluez5.enable-hw-volume"] = true,
];
# mSBC provides better audio + microphone -- FIXME: Some devices may now support both hsp_ag and hfp_ag
"bluez5.msbc-support" = true; ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
# SBC XQ provides better audio
"bluez5.sbc-xq-support" = true;
};
};
} }
{ '';
matches = [
# Matches all sources
{
"node.name" = "~bluez_input.*";
}
# Matches all outputs
{
"node.name" = "~bluez_output.*";
}
];
actions = {
"node.pause-on-idle" = false;
};
}
];
}; };
}) })