Skip to content

bluez5: align audio output of all BAP sinks

P V requested to merge pvir/pipewire:iso-sync into master

Make BAP nodes align the first sample of their packets at multiples of the ISO interval, counted in the shared graph sample position. This skips a few samples (< 10ms) at the start of playback to ensure the alignment.

Since the sinks align their flush timing to the graph time, this also results to them sending packets corresponding to the same graph time at the same real time instants.

Due to packet queues in kernel/controller, the playback may still be off by multiples of packets. Kernel changes are needed to address that part.

This works towards making BAP left and right channels to be synchronized in TWS headsets, where the two earpieces currently appear as different devices.

Edited by P V

Merge request reports