bluez5: support LC3-SWB in SCO sink/source

Add support for LC3-SWB encoding/decoding.

Tested on Pixel Buds Pro.
This commit is contained in:
Pauli Virtanen 2024-01-22 20:48:29 +02:00 committed by Wim Taymans
parent fe412784a4
commit 45ff965f33
4 changed files with 265 additions and 69 deletions

View file

@ -165,6 +165,10 @@ extern "C" {
#define MSBC_ENCODED_SIZE 60 /* 2 bytes header + 57 mSBC payload + 1 byte padding */
#define MSBC_PAYLOAD_SIZE 57
#define LC3_SWB_DECODED_SIZE 960 /* 32 kHz mono S24_32 @ 7.5 ms */
#define LC3_SWB_ENCODED_SIZE 60 /* 2 bytes header + 58 LC3 payload */
#define LC3_SWB_PAYLOAD_SIZE 58
enum spa_bt_media_direction {
SPA_BT_MEDIA_SOURCE,
SPA_BT_MEDIA_SINK,