bluez5: make room for a2dp duplex channel

Some non-standard A2DP codecs (FastStream/aptX-LL) have "voice duplex
channel" that can be used to provide an A2DP duplex mode.

Add support for duplex channels, accounting for the fact that the two
directions may be encoded with different actual codecs.
This commit is contained in:
Pauli Virtanen 2021-08-15 19:11:12 +03:00
parent 4ab8ecfe06
commit eca37b58a6
3 changed files with 82 additions and 28 deletions

View file

@ -355,6 +355,8 @@ struct a2dp_codec {
const size_t send_buf_size;
const struct a2dp_codec *duplex_codec; /**< Codec for non-standard A2DP duplex channel */
int (*fill_caps) (const struct a2dp_codec *codec, uint32_t flags,
uint8_t caps[A2DP_MAX_CAPS_SIZE]);
int (*select_config) (const struct a2dp_codec *codec, uint32_t flags,