Skip to content

pipewire, wireplumber: bluetooth call fixes - #96

Merged
masterxq merged 3 commits into
mainfrom
bt-gespraech
Dec 6, 2026
Merged

masterxq merged 3 commits into
mainfrom
bt-gespraech

Conversation

@masterxq

@masterxq masterxq commented Dec 6, 2026

Copy link
Copy Markdown
Owner
  • pipewire: bluez5 media source reads its timer before checking the transport (the data loop spun until RLIMIT_RTTIME killed the process when the transport went away).
  • wireplumber: new recipe; scripts can read the calls that are active at start.

…nsport

pipewire +pd2: the timer handler of the Bluetooth media source returned
at once when the transport was gone, before it read the expiration from
the timerfd. A source that drives the graph and whose device
disconnects keeps its timer until the node is stopped; when the timer
fires in that window, the timerfd stays readable and the realtime data
loop calls the handler again and again. The thread spins until
RLIMIT_RTTIME (200 ms) makes the kernel kill the process. The Bluetooth
nodes run in WirePlumber, so WirePlumber was killed with SIGKILL when a
headset disconnected during a call, and the call lost its audio routing.
The handler now reads the expiration first.
wireplumber +pd1 (new): the modem-manager plugin announces calls only by
the voice-call-start and voice-call-stop signals. When WirePlumber
starts during a call, the plugin finds the call while it lists the calls
of the modems and emits voice-call-start as soon as the D-Bus replies
arrive, which can be before scripts loaded later have connected to the
signal; those assumed that no call was active. On lisbon a profile hook
that keeps the call profile out of the card without a call then dropped
the profile find-voice-call-profile.lua had chosen, and a call went on
without audio routing after WirePlumber had restarted.

The plugin gets the action get-active-calls (number of calls in an
active state), and find-voice-call-profile.lua starts from it.
…tarts

pipewire +pd3: until its transport has started, the Bluetooth media sink
reports HAVE_DATA on its input port without a buffer, in process() and in
the timer of a driving sink. The converter in front of the sink writes
only while the status is not HAVE_DATA. A driving sink resets the status
in its timer once the transport runs, a following sink never does. A sink
that drove the graph for a timer tick before its transport started and
then became a follower therefore never got data again; the SCO keepalive
sent silence instead, so a headset that reconnected during a call heard
nothing, depending on which node started first. process() now asks for
data again in that state, and the timer no longer drops a buffer that the
port still holds.
@masterxq
masterxq merged commit 539a6e7 into main Dec 6, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant