bluez5: support device capability checks beyond A2DP caps + split sbc-xq to separate codec

We would like to have BT device codec capability checks beyond what's
possible based on A2DP caps.

Split SBC-XQ to a separate codec, and enable it in the device-dependent
check (although currently it just uses the config option).
This commit is contained in:
Pauli Virtanen 2021-01-25 22:06:34 +02:00 committed by Wim Taymans
parent e860f2bb4e
commit b642c7f209
4 changed files with 73 additions and 24 deletions

View file

@ -69,6 +69,7 @@ const a2dp_mpeg_t bluez_a2dp_mpeg = {
#endif
extern struct a2dp_codec a2dp_codec_sbc;
extern struct a2dp_codec a2dp_codec_sbc_xq;
#if ENABLE_LDAC
extern struct a2dp_codec a2dp_codec_ldac;
#endif
@ -97,6 +98,7 @@ const struct a2dp_codec *a2dp_codec_list[] = {
#if ENABLE_MP3
&a2dp_codec_mpeg,
#endif
&a2dp_codec_sbc_xq,
&a2dp_codec_sbc,
NULL,
};