bluez5: add aptx-LL codec

Support the low-latency variant of the aptx codec.

The magic mostly seems to be on the device side, since the stream is the
same as standard aptx, but latency is smaller even if stream/packet
sizes are the same.

Sound output latency is noticeably less than with the standard aptx.
Tested on Sennheiser HD 250 / Avantree Aria Pro.

The codec in principle also supports bidirectional duplex streams,
but that is not implemented here.
This commit is contained in:
Pauli Virtanen 2021-08-15 20:15:58 +03:00 committed by Wim Taymans
parent 73994feda9
commit 90b62ba2b3
6 changed files with 143 additions and 21 deletions

View file

@ -132,6 +132,8 @@ extern struct a2dp_codec a2dp_codec_mpeg;
#if ENABLE_APTX
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;
#endif
static const struct a2dp_codec * const a2dp_codec_list[] = {
@ -150,6 +152,10 @@ static const struct a2dp_codec * const a2dp_codec_list[] = {
#endif
&a2dp_codec_sbc,
&a2dp_codec_sbc_xq,
#if ENABLE_APTX
&a2dp_codec_aptx_ll_0,
&a2dp_codec_aptx_ll_1,
#endif
NULL
};