bluez5-device: Rewrite of thread function, reduce send buffer size for a2dp sink
authorGeorg Chini <georg@chini.tk>
Wed, 9 May 2018 05:27:58 +0000 (07:27 +0200)
committerGeorg Chini <georg@chini.tk>
Wed, 9 May 2018 05:27:58 +0000 (07:27 +0200)
commit192c3aaef8352ba9504aee4e311a23f6162d39d8
tree5f8ca1dc827e84d483b35abf4c027ab444d87593
parentdc65a0345410ec8a8e5f8ef467e6678ffbf4b73f
bluez5-device: Rewrite of thread function, reduce send buffer size for a2dp sink

The rewrite of the thread function does not change functionality much,
most of it is only cleanup, minor bug fixing  and documentation work.

This patch also changes the send buffer size for a2dp sink to avoid lags
after temporary connection drops, following the proof-of-concept patch
posted by Dmitry Kalyanov.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=58746
Additionally the patch changes the fixed latency for HSP playback from 125
to 25 ms. Tests showed that this produces better audio sync, which is
expected as HSP should have smaller latency than A2DP.
src/modules/bluetooth/module-bluez5-device.c