bluez: fix a2dp (cherry-pick patch)
Some checks failed
Build and Deploy / mreow (push) Successful in 56m32s
Build and Deploy / muffin (push) Has been cancelled
Build and Deploy / yarn (push) Has been cancelled

This commit is contained in:
2026-04-28 00:59:05 -04:00
parent e6d7e1a73a
commit f0d7da5141
2 changed files with 52 additions and 1 deletions

View File

@@ -66,7 +66,26 @@
};
# cachyos kernel overlay
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.default ];
nixpkgs.overlays = [
inputs.nix-cachyos-kernel.overlays.default
# bluez 5.86 reversed the profile-connect order (regression of cdcd845f87ee).
# Dual-role devices that advertise both AudioSource (UUID 0x110a) and
# AudioSink (UUID 0x110b) -- e.g. any A2DP headphone with an HFP mic, like
# the Bose QC 45 -- now negotiate audio-gateway first and never expose
# a2dp-sink, with bluetoothd reporting:
# src/service.c:btd_service_connect() a2dp-sink profile connect failed
# for <addr>: Device or resource busy
# Cherry-picks bluez/bluez@066a164 "a2dp: connect source profile after
# sink" (slated for 5.87). FIX: drop overlay when nixpkgs ships >= 5.87.
# see https://github.com/bluez/bluez/issues/1922
(_final: prev: {
bluez = prev.bluez.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
../patches/bluez/0001-a2dp-connect-source-after-sink.patch
];
});
})
];
# kernel options
boot = {