mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -05:00
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. |
||
|---|---|---|
| .. | ||
| a2dp-codec-aac.c | ||
| a2dp-codec-aptx.c | ||
| a2dp-codec-ldac.c | ||
| a2dp-codec-sbc.c | ||
| a2dp-codecs.c | ||
| a2dp-codecs.h | ||
| a2dp-sink.c | ||
| a2dp-source.c | ||
| backend-hsp-native.c | ||
| backend-hsphfpd.c | ||
| backend-ofono.c | ||
| bluez5-dbus.c | ||
| bluez5-device.c | ||
| defs.h | ||
| meson.build | ||
| plugin.c | ||
| rtp.h | ||
| sco-sink.c | ||
| sco-source.c | ||