pulseaudio/src/modules/bluetooth
Igor V. Kovalenko a4402bb4f4 bluetooth: Limit effective SBC bitpool of incoming bluetooth connection
Turned out that SelectConfiguration is only used for outgoing connections, and
incoming connection from bluetooth headset using SBC codec ends up with a
bitpool as large as declared by headset. When resulting bitpool is so large that
SBC frame size plus RTP header size exceeds write MTU size, number of frames per
packet becomes zero causing crash dividing by zero in update_sink_buffer_size()

Fix this by limiting available bitpool value exposed for SBC endpoints.

Fixes: 89082cbfa ("bluetooth: a2dp dual channel SBC XQ codec configurations")
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/695>
2022-05-16 18:01:39 +00:00
..
a2dp-codec-api.h bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codec-aptx-gst.c bluetooth/gst: Timestamp encoding buffers according to PA clock 2022-02-21 12:33:18 -05:00
a2dp-codec-gst.c bluetooth/gst: Timestamp encoding buffers according to PA clock 2022-02-21 12:33:18 -05:00
a2dp-codec-gst.h bluetooth/gst: Timestamp encoding buffers according to PA clock 2022-02-21 12:33:18 -05:00
a2dp-codec-ldac-gst.c bluetooth/gst: Timestamp encoding buffers according to PA clock 2022-02-21 12:33:18 -05:00
a2dp-codec-sbc.c bluetooth: Limit effective SBC bitpool of incoming bluetooth connection 2022-05-16 18:01:39 +00:00
a2dp-codec-util.c bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codec-util.h bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
a2dp-codecs.h bluetooth: Update a2dp-codecs.h from upstream bluez project 2019-04-12 13:56:28 +03:00
backend-native.c bluetooth/backend-native: Replace tab-indents with spaces 2021-11-17 15:25:00 +00:00
backend-ofono.c bluetooth: Only remove cards belonging to the device. 2021-08-25 15:20:57 +00:00
bluez5-util.c bluetooth: Fix device->adapter dependency while releasing discovery 2021-11-17 15:30:03 +00:00
bluez5-util.h bluetooth: Consider adapter UUIDs when evaluating profile support 2021-10-06 15:07:00 +00:00
bt-codec-api.h bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
bt-codec-cvsd.c bluetooth: split BT codec from A2DP SEP configuration api 2021-04-05 15:43:32 +00:00
bt-codec-msbc.c bluetooth: mSBC: log lost input audio packets at debug level 2021-04-05 15:43:32 +00:00
bt-codec-msbc.h bluetooth: add support for mSBC codec 2021-04-05 15:43:32 +00:00
meson.build build-sys: meson: Require bluez dependency if bluez5 feature is enabled 2021-06-21 10:50:08 +00:00
module-bluetooth-discover.c bluetooth: Remove leftover references to the BlueZ 4/5 split 2018-07-27 11:28:11 +03:00
module-bluetooth-policy.c bluetooth: complete bluetooth profile separation 2021-02-23 06:54:39 +00:00
module-bluez5-device.c bluetooth: Allow bluetooth to use alternative smoother code 2021-11-03 21:13:38 +00:00
module-bluez5-discover.c bluetooth: Add avrcp_absolute_volume module flag for disablement 2021-05-17 14:50:03 +00:00
rtp.h bluetooth: Rename rtp_sbc_payload to rtp_payload 2022-02-21 12:15:47 +05:30