From 5a6ac5bb594d2b8fe19d3479ea6cabe8456e0acb Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 29 Jun 2021 14:23:57 +0300 Subject: [PATCH] Enable more bluetooth codecs --- profiles/hardware.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/profiles/hardware.nix b/profiles/hardware.nix index 4b7bd25..25bdcc0 100644 --- a/profiles/hardware.nix +++ b/profiles/hardware.nix @@ -35,14 +35,16 @@ with deviceSpecific; { alsa.enable = true; pulse.enable = true; media-session.config.bluez-monitor = { - properties = { }; + properties = { + "bluez5.codecs" = [ "sbc" "aac" "ldac" "aptx" "aptx_hd" ]; + }; rules = [ { actions = { update-props = { - "bluez5.auto-connect" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ]; + "bluez5.auto-connect" = [ "hsp_hs" "hfp_hf" "a2dp_sink" ]; "bluez5.hw-volume" = - [ "hfp_ag" "hsp_ag" "a2dp_source" "a2dp_sink" ]; + [ "hsp_ag" "hfp_ag" "a2dp_source" "a2dp_sink" ]; }; }; matches = [{ "device.name" = "~bluez_card.*"; }];