bluetooth: a2dp dual channel SBC XQ codec configurations

Desired SBC bitpool value is calculated from target bitrate limit.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/476>
This commit is contained in:
Igor V. Kovalenko 2021-01-19 18:52:55 +03:00 committed by PulseAudio Marge Bot
parent ff2f16294f
commit 89082cbfaa
2 changed files with 329 additions and 32 deletions

View file

@ -30,6 +30,9 @@
#include "a2dp-codec-util.h"
extern const pa_a2dp_codec pa_a2dp_codec_sbc;
extern const pa_a2dp_codec pa_a2dp_codec_sbc_xq_453;
extern const pa_a2dp_codec pa_a2dp_codec_sbc_xq_512;
extern const pa_a2dp_codec pa_a2dp_codec_sbc_xq_552;
#ifdef HAVE_GSTAPTX
extern const pa_a2dp_codec pa_a2dp_codec_aptx;
extern const pa_a2dp_codec pa_a2dp_codec_aptx_hd;
@ -53,6 +56,9 @@ static const pa_a2dp_codec *pa_a2dp_codecs[] = {
&pa_a2dp_codec_aptx,
#endif
&pa_a2dp_codec_sbc,
&pa_a2dp_codec_sbc_xq_453,
&pa_a2dp_codec_sbc_xq_512,
&pa_a2dp_codec_sbc_xq_552,
};
unsigned int pa_bluetooth_a2dp_codec_count(void) {