bluez5: don't create aptx-ll/faststream sink endpoints

We don't currently implement encoding for the duplex channel
for these codecs, so they are not fully functional as A2DP sinks,
and their main use is anyway with headphones.

Also, the number of endpoints in BlueZ appears to be limited, and
appears to be counted across all adapters.  Unclear whether this comes
from AVDTP limitation, but currently plugging in a second BT adapter
causes the second media application registration to fail.  This change
reduces the number of endpoints enough so that registration succeeds for
two adapters.
This commit is contained in:
Pauli Virtanen 2021-08-25 20:39:18 +03:00
parent d1f521af40
commit 63ba9f98ba
2 changed files with 2 additions and 6 deletions

View file

@ -661,8 +661,6 @@ const struct a2dp_codec a2dp_codec_aptx_hd = {
.abr_process = codec_abr_process, \
.start_encode = codec_start_encode, \
.encode = codec_encode, \
.start_decode = codec_start_decode, \
.decode = codec_decode, \
.reduce_bitpool = codec_reduce_bitpool, \
.increase_bitpool = codec_increase_bitpool

View file

@ -318,7 +318,7 @@ static int codec_encode(void *data,
return res;
}
static int codec_start_decode (void *data,
static SPA_UNUSED int codec_start_decode (void *data,
const void *src, size_t src_size, uint16_t *seqnum, uint32_t *timestamp)
{
return 0;
@ -355,7 +355,7 @@ static int do_decode(sbc_t *sbc,
return processed;
}
static int codec_decode(void *data,
static SPA_UNUSED int codec_decode(void *data,
const void *src, size_t src_size,
void *dst, size_t dst_size,
size_t *dst_out)
@ -609,8 +609,6 @@ static const struct a2dp_codec duplex_codec = {
.abr_process = codec_abr_process, \
.start_encode = codec_start_encode, \
.encode = codec_encode, \
.start_decode = codec_start_decode, \
.decode = codec_decode, \
.reduce_bitpool = codec_reduce_bitpool, \
.increase_bitpool = codec_increase_bitpool