bluetooth: allow increasing output bitrate
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Wed, 20 Jan 2021 09:51:14 +0000 (12:51 +0300)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Thu, 21 Jan 2021 15:10:15 +0000 (15:10 +0000)
commit9699511215a39b688061a2640205c37c7dcd02a1
treefc264d4bedcc95d1bb21ea119e88c3f8d3c7095d
parentac33a01f30d54b23e9eb264b5fb13022d1c2bdce
bluetooth: allow increasing output bitrate

Bluetooth thread may ask encoder to reduce bitrate if writing is not keeping up
with inputs or writing to bluetooth socket takes too much time.

Assuming conditions leading to reduced bitrate are intermittent, allow periodic
attempts to increase encoder bitrate, by default at most twice per second.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/481>
src/modules/bluetooth/a2dp-codec-api.h
src/modules/bluetooth/bluez5-util.h
src/modules/bluetooth/module-bluez5-device.c