bluez5: add aptX and aptX HD codecs

They need the libopenaptx libraries from
https://github.com/pali/libopenaptx
This commit is contained in:
Wim Taymans 2020-12-04 11:34:38 +01:00
parent af8bb55762
commit 106d597305
11 changed files with 474 additions and 68 deletions

View file

@ -50,24 +50,6 @@ const a2dp_mpeg_t bluez_a2dp_mpeg = {
};
#endif
#if ENABLE_APTX
const a2dp_aptx_t bluez_a2dp_aptx = {
.info.vendor_id = APTX_VENDOR_ID,
.info.codec_id = APTX_CODEC_ID,
.channel_mode =
/* NOTE: Used apt-X library does not support
* single channel (mono) mode. */
APTX_CHANNEL_MODE_DUAL_CHANNEL |
APTX_CHANNEL_MODE_STEREO |
APTX_CHANNEL_MODE_JOINT_STEREO,
.frequency =
APTX_SAMPLING_FREQ_16000 |
APTX_SAMPLING_FREQ_32000 |
APTX_SAMPLING_FREQ_44100 |
APTX_SAMPLING_FREQ_48000,
};
#endif
extern struct a2dp_codec a2dp_codec_sbc;
#if ENABLE_LDAC
extern struct a2dp_codec a2dp_codec_ldac;
@ -80,6 +62,7 @@ extern struct a2dp_codec a2dp_codec_mpeg;
#endif
#if ENABLE_APTX
extern struct a2dp_codec a2dp_codec_aptx;
extern struct a2dp_codec a2dp_codec_aptx_hd;
#endif
const struct a2dp_codec *a2dp_codec_list[] = {
@ -95,6 +78,7 @@ const struct a2dp_codec *a2dp_codec_list[] = {
#endif
#if ENABLE_APTX
&a2dp_codec_aptx,
&a2dp_codec_aptx_hd,
#endif
NULL,
};