Repository navigation
pipewire, wireplumber: bluetooth call fixes - #96
Merged
Merged
Conversation
masterxq
commented
Dec 6, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.