pipewire/spa/plugins/bluez5
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
..
a2dp-codec-aac.c bluez5: support other ldac bit depth 2020-12-11 13:30:11 +01:00
a2dp-codec-aptx.c a2dp: add missing function abr_process in a2dp_codec_aptx 2020-12-20 04:53:21 +08:00
a2dp-codec-ldac.c a2dp: correct ldac config table 2020-12-20 22:34:51 +08:00
a2dp-codec-sbc.c a2dp: add ldac ABR support 2020-12-19 19:17:15 +08:00
a2dp-codecs.c a2dp: prefer aptx_hd over aptx 2020-12-11 20:04:57 +01:00
a2dp-codecs.h a2dp: add ldac ABR support 2020-12-19 19:17:15 +08:00
a2dp-sink.c a2dp: add ldac ABR support 2020-12-19 19:17:15 +08:00
a2dp-source.c bluez5: Don't deref the transport to get the fd 2020-12-14 13:17:48 +01:00
backend-hsp-native.c bluez5: Share DBus connection between all backends 2020-07-24 15:49:28 +00:00
backend-hsphfpd.c ofono/hsphfpd: force write_mtu=24 for mSBC codec 2020-12-21 04:16:11 +02:00
backend-ofono.c ofono/hsphfpd: force write_mtu=24 for mSBC codec 2020-12-21 04:16:11 +02:00
bluez5-dbus.c bluez5: backend-ofono: Add mSBC support 2020-12-09 16:28:30 +00:00
bluez5-device.c bluez5: handle NULL profile, don't run the filter on it 2020-12-17 12:25:38 +01:00
defs.h bluez5: backend-ofono: Add mSBC support 2020-12-09 16:28:30 +00:00
meson.build a2dp: add ldac ABR support 2020-12-19 19:17:15 +08:00
plugin.c monitor: remove monitor API and use device 2019-09-20 13:04:14 +02:00
rtp.h Add bluez5 plugins 2018-01-16 15:19:55 +01:00
sco-sink.c bluez5: Add mSBC support to sco-sink 2020-11-16 18:15:39 +01:00
sco-source.c bluez5: Add mSBC support to sco-source 2020-11-16 18:15:39 +01:00