AAC codec fails or crash Bluetooth daemon on some devices
Using today's latest Pipewire master, vanilla default config
Bluetooth Radio, Bluetooth Headset, XFCE, Zenwalk Linux Latest (Bluez 5.58, Kernel 5.10.27, and PipeWire GIT master):
Description of Problem:
AAC codec works for some devices (ie : Sony speaker, Bose Earbuds).
But fails on High End Technics Ottava SC50 stereo speaker : Sometimes pairing fails Sometimes Pairing succeed but connection makes the BT daemon crash Sometimes connexion with default AAC succeed but no sink created Sometimes connexion with default AAC succeed but no sound (I have to switch to SBC-XQ to get sound)
On the same speaker : Android can connect with AAC, no problem.
Below some A2DP logs
bash-5.1# hcidump avdtp HCI sniffer - Bluetooth packet analyzer ver 5.58 device: hci0 snap_len: 1500 filter: 0x400 < AVDTP(s): Discover cmd: transaction 0 nsp 0x00
AVDTP(s): Discover rsp: transaction 0 nsp 0x00 ACP SEID 1 - Audio Sink ACP SEID 2 - Audio Sink < AVDTP(s): All Capabilities cmd: transaction 1 nsp 0x00 ACP SEID 1 AVDTP(s): All Capabilities rsp: transaction 1 nsp 0x00 Media Transport Media Codec - MPEG-2,4 AAC MPEG-2 AAC LC MPEG-4 AAC LC MPEG-4 AAC LTP MPEG-4 AAC scalable 8kHz 11.025kHz 12kHz 16kHz 22.05kHz 24kHz 32kHz 44.1kHz 48kHz 64kHz 88.2kHz 96kHz 1 2 Channels 320000bps VBR Content Protection 02 00 Delay Reporting < AVDTP(s): All Capabilities cmd: transaction 2 nsp 0x00 ACP SEID 2 AVDTP(s): All Capabilities rsp: transaction 2 nsp 0x00 Media Transport Media Codec - SBC 16kHz 32kHz 44.1kHz 48kHz Mono DualChannel Stereo JointStereo 4 8 12 16 Blocks 4 8 Subbands SNR Loudness Bitpool Range 2-64 Content Protection 02 00 Delay Reporting < AVDTP(s): Set config cmd: transaction 3 nsp 0x00 ACP SEID 1 - INT SEID 5 Media Transport Media Codec - MPEG-2,4 AAC MPEG-2 AAC LC 48kHz 2 Channels 320000bps VBR Delay Reporting AVDTP(s): Set config rsp: transaction 3 nsp 0x00 AVDTP(s): Delay Report cmd: transaction 0 nsp 0x00 ACP SEID 5 delay 350.0ms