pipewire/spa
Pauli Virtanen 4144427655 ofono/hsphfpd: force write_mtu=24 for mSBC codec
Kernel should provide the correct mtu/packet size to use for SCO socket
I/O, but it does not currently appear to (as of linux 5.9), see
https://lore.kernel.org/linux-bluetooth/20201210003528.3pmaxvubiwegxmhl@pali/T/

When using mSBC, instead of using the (incorrect) kernel-provided value,
hardcode mtu to 24, corresponding to ALT1 mode.  BT-UART adapters should
not require specific mtu, and it appears most BT-USB adapters only
support ALT1, see
https://lore.kernel.org/linux-bluetooth/20201210012003.133000-1-tpiepho@gmail.com/

This code needs to be revised when the issue is sorted out on the kernel
side.

Add setting bluez5.msbc-force-mtu for easier debugging in special cases.

Leave read_mtu as the detected value --- it does not seem to affect
whether BT-USB can record, but Raspberry Pi BT-UART fails to record if a
different value is used.
2020-12-21 04:16:11 +02:00
..
examples examples: dlclose on some errors 2020-07-02 16:07:54 +02:00
include profiler: add xrun_count and latency to profiler 2020-12-20 12:32:54 +01:00
plugins ofono/hsphfpd: force write_mtu=24 for mSBC codec 2020-12-21 04:16:11 +02:00
tests spa: fix test on 32 bit 2020-12-04 09:36:05 +01:00
tools initialize variables better 2020-05-20 15:24:25 +02:00
meson.build a2dp: add ldac ABR support 2020-12-19 19:17:15 +08:00