mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-18 22:05:37 -05:00
bluetooth: apply write MTU detection based on read packet size
HFP Audio Connection SCO configuration is negotiated symmetrically in both directions, and USB HCI SCO packet framing is also symmetric in both directions. This means that packet size will be the same for reads and writes over HFP SCO socket. HFP profile specification states that valid speech data shall exist on the Synchronous Connection in both directions after the Audio Connection is established. This guarantees that an incoming packet will arrive shortly after SCO connection is established. Use it's size to fix write MTU in case kernel value is wrong. Discussion here https://lore.kernel.org/patchwork/patch/1303411/ Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/507>
This commit is contained in:
parent
4444ecad6f
commit
62776cc815
4 changed files with 22 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ struct pa_bluetooth_transport {
|
|||
|
||||
const pa_a2dp_codec *bt_codec;
|
||||
int stream_write_type;
|
||||
size_t last_read_size;
|
||||
|
||||
pa_volume_t source_volume;
|
||||
pa_volume_t sink_volume;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue