Public bug reported:
[ Impact ]
With some Bluetooth headsets, calls over HFP with the default mSBC codec
often come up with no audio in either direction. The headset is connected
and the headset-head-unit profile is active, but nothing is heard and the
microphone records silence. Leaving and rejoining the call, or opening the
sound settings, sometimes makes it work. This makes the headset unreliable
for meetings in browsers (Google Meet) and in Slack.
Root cause, confirmed with btmon: while PipeWire (the HFP Audio Gateway) is
setting up the mSBC eSCO connection, the headset sends AT+BCC ("start codec
connection"). PipeWire's native HFP backend then restarts codec negotiation
and cancels the SCO setup already in progress. The audio link is torn down,
and the call stays silent.
HFP 1.10 section 4.11.2 says the AG must reply ERROR to AT+BCC when it
cannot start the Codec Connection procedure. Upstream PipeWire fixed this
in commit 710136cc ("bluez5: backend-native: reject AT+BCC while SCO setup
is in progress", MR !3109, issue #5506). It was merged to master on
2026-11-19 and is not in any upstream release yet, including 1.6.11 in
tenacious.
Affected: resolute (1.6.2-1ubuntu1.3), stonking (1.6.8-1ubuntu4) and
tenacious (1.6.11-1ubuntu2).
Reproduced on:
- Ubuntu 26.04 LTS, kernel 7.0.0-44-generic
- PipeWire 1.6.2-1ubuntu1.3, WirePlumber 0.5.13, BlueZ 5.85
- adapter: MediaTek MT7925 (USB 0e8d:e025)
- headset: JBL Tour Pro 3
[ Test Plan ]
1. Pair a headset that sends AT+BCC during codec connection setup. The
JBL Tour Pro 3 does. Leave mSBC enabled (the default).
2. Optionally run "sudo btmon -w hfp.btsnoop" to capture the HFP/SCO
exchange.
3. Join a call that uses the headset microphone (Google Meet in Chrome, or
a Slack huddle) and check that both audio directions work. Leave and
repeat 5 times.
4. Expected with the current package: on several attempts, there is no
audio and no microphone. btmon shows AT+BCC from the headset during
eSCO setup, after which the SCO link is dropped.
5. Expected with the fixed package: all 5 attempts have working audio in
both directions. btmon shows the AG answering AT+BCC with ERROR during
SCO setup, and the eSCO link stays up.
With a locally built libspa-bluez5.so containing exactly this patch, 5 of
5 calls worked on the hardware above, compared with frequent silent calls
before.
[ Where problems could occur ]
The change only affects the native HFP Audio Gateway backend
(spa/plugins/bluez5/backend-native.c). Only one case behaves
differently: the headset sends AT+BCC while a codec switch, the initial
codec setup or an SCO connection is in progress or active. Before the
fix, PipeWire restarted codec negotiation and cancelled the SCO setup.
Now it replies ERROR, as the HFP spec requires, and lets the ongoing
setup finish. AT+BCC outside these cases is handled as before. The
oFono and hsphfpd backends, A2DP and LE Audio are not touched.
A headset that misbehaves when its AT+BCC gets ERROR could fail to
switch codecs. In that case PipeWire stays on the codec already being
set up, and HFP audio would be affected. This is the behaviour upstream
chose after discussing devices that reply OK and do nothing.
[ Other Info ]
Upstream commit:
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/710136cc74771079a01f58736877032ab0c6e658
Upstream issue:
https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/5506
Debdiffs for tenacious (1.6.11-1ubuntu3) and resolute (1.6.2-1ubuntu1.4)
are attached. Both apply the upstream commit unchanged as a quilt patch.
** Affects: pipewire (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2190851
Title:
Bluetooth HFP calls are silent with mSBC: PipeWire aborts SCO setup
when the headset sends AT+BCC (fixed upstream, commit 710136cc)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/2190851/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs