bluez5: enable duplex for aptx-ll

aptX-LL sink devices may send back mSBC encoded data corresponding to
microphone input.  It appears to be enabled when the bidirectional link
is set in the caps, and the device also supports this.

Implement mSBC decoding in the duplex channel.

Tested to be working on Avantree Aria Pro.
This commit is contained in:
Pauli Virtanen 2021-08-18 17:19:05 +03:00
parent 623b6df8a2
commit dedc08cdf8
7 changed files with 208 additions and 4 deletions

View file

@ -173,6 +173,7 @@ extern "C" {
* of the input (number of PCM samples) and output is known up front. */
#define MSBC_DECODED_SIZE 240
#define MSBC_ENCODED_SIZE 60 /* 2 bytes header + 57 mSBC payload + 1 byte padding */
#define MSBC_PAYLOAD_SIZE 57
enum spa_bt_profile {
SPA_BT_PROFILE_NULL = 0,