btusb: QCA ROME (USB 10ab:9309) HFP audio broken - CVSD no SCO audio, mSBC no link, LC3 crackles
Hello,
HFP call audio is broken with the Qualcomm ROME based controller in a Lenovo ThinkPad P14s Gen 4: with CVSD the host receives no audio at all, mSBC never gets a SCO link, and only LC3 (PipeWire's HFP LC3-SWB codec) works, with constant crackling. A2DP is fine on the same controller. A btmon trace of a reproduction is attached.
Hardware
--------
Laptop: Lenovo ThinkPad P14s Gen 4 (AMD)
Controller: USB 10ab:9309 (USI Co., Ltd), driver btusb
HCI/LMP version 5.3, manufacturer Qualcomm (29), LMP subversion 0x994d
Firmware: QCA: patch rome 0x130201 build 0x994d,
firmware rome 0x130201 build 0x38e6
(qca/rampatch_usb_00130201.bin, qca/nvm_usb_00130201_gf.bin) LMP features: 0xff 0xfe 0x8f 0xfe 0xd8 0x3f 0x7b 0x87
(SCO, CVSD, transparent SCO data, eSCO EV3 and EDR eSCO 2 Mbps are all advertised)
Headset: Apple AirPods Pro 2 (A2698), HFP over BR/EDR
Software
--------
Kernel: 7.2.15-76070215-generic (Pop!_OS 24.04 LTS) linux-firmware: 20260810 (System76 build) BlueZ: 5.72 PipeWire: 1.6.8 WirePlumber: 0.5.12
Kernel log
----------
Bluetooth: hci0: using rampatch file: qca/rampatch_usb_00130201.bin
Bluetooth: hci0: QCA: patch rome 0x130201 build 0x994d, firmware rome0x130201 build 0x38e6
Bluetooth: hci0: using NVM file: qca/nvm_usb_00130201_gf.bin
Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is
advertised, but not supported.
...
Bluetooth: hci0: SCO packet for unknown connection handle 4
Bluetooth: hci0: SCO packet for unknown connection handle 5
Bluetooth: hci0: SCO packet for unknown connection handle 6
Bluetooth: hci0: SCO packet for unknown connection handle 7
The "unknown connection handle" messages appear around the times the headset switches between A2DP and HFP during calls.
Reproduction (no browser involved)
----------------------------------
For each HFP profile: set the PipeWire card profile, play a 440 Hz tone to the headset, and record 3 s from the headset microphone with parecord (s16le, 16 kHz, mono):
profile (codec) mic samples in 3 s level
headset-head-unit (LC3-24kHz) 32000 (74.5% non-zero) -63 dBFS noise
floor
headset-head-unit-msbc (mSBC) 0 - headset-head-unit-cvsd (CVSD) 0 -
With mSBC and CVSD the host gets no microphone data at all (not even silence), and nothing is heard from the headset. With LC3 audio works in both directions but crackles constantly, more noticeably while typing on the laptop keyboard.
What the btmon trace shows (attached, gzipped btsnoop)
------------------------------------------------------
Both SCO links are created with the legacy Setup Synchronous Connection command (0x01|0x0028); Enhanced Setup is never used.
LC3: Synchronous Connect Complete: Success, handle 12, eSCO,
interval 0x0c, RX/TX packet length 60, air mode Transparent.
SCO data: 211 RX / 139 TX packets, all dlen 60.CVSD: codec negotiated (+BCS: 1 / AT+BCS=1), then
Synchronous Connect Complete: Success, handle 13, eSCO,
interval 0x0c, RX/TX packet length 60, air mode CVSD.
SCO data: 544 RX / 314 TX packets, all dlen 48. mSBC: no codec negotiation (+BCS: 2) and no Setup Synchronous
Connection at all after switching to the mSBC profile.
So for CVSD the link is negotiated with 60-byte packets but carries 48-byte SCO packets in both directions, and the audio server then delivers no audio. For mSBC the host side never attempts the link, even though the profile is offered and selected; that part may be a BlueZ/PipeWire issue rather than a driver one.
Separately, during real calls the HFP link sometimes drops after 15-40 s (the headset reports call audio as stopped) and the card falls back to A2DP while the application is still capturing.
Things ruled out
----------------
- USB autosuspend: crackling unchanged with the controller's power/control set to "on" (btusb enable_autosuspend=Y by default).
- Wi-Fi coexistence: Wi-Fi is on 5 GHz (channel 36).
- Other Bluetooth traffic: no discovery running; unchanged with all third-party Bluetooth software (LE advertisement monitor) stopped.
- CPU load / audio xruns: load ~1.5, no xruns logged by PipeWire.
Possibly related
----------------
Bug 215576, "HSP/HFP mSBC profile broken with QCA6174"
https://bugzilla.kernel.org/show_bug.cgi?id=215576
(an earlier ROME-family controller; mSBC broken since v5.16, worked around by not using enhanced SCO setup. Here enhanced setup is already skipped, yet CVSD and mSBC still fail and LC3 crackles.)
Expected
--------
Working CVSD and mSBC, and clean LC3, over SCO.
I can test patches or collect more traces.
Thanks,
Satya Kommula