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

@ -134,6 +134,8 @@ extern struct a2dp_codec a2dp_codec_aptx;
extern struct a2dp_codec a2dp_codec_aptx_hd;
extern struct a2dp_codec a2dp_codec_aptx_ll_0;
extern struct a2dp_codec a2dp_codec_aptx_ll_1;
extern struct a2dp_codec a2dp_codec_aptx_ll_duplex_0;
extern struct a2dp_codec a2dp_codec_aptx_ll_duplex_1;
#endif
static const struct a2dp_codec * const a2dp_codec_list[] = {
@ -155,6 +157,8 @@ static const struct a2dp_codec * const a2dp_codec_list[] = {
#if ENABLE_APTX
&a2dp_codec_aptx_ll_0,
&a2dp_codec_aptx_ll_1,
&a2dp_codec_aptx_ll_duplex_0,
&a2dp_codec_aptx_ll_duplex_1,
#endif
NULL
};