bluez5: make codecs configurable

Make the list of supported codecs available.
Register all supported codecs endpoints
Find the codec from the endpoint name
Put the codec on the transport for the sink to find.
This commit is contained in:
Wim Taymans 2020-10-19 13:27:11 +02:00
parent e18c4d76dc
commit 53ee5ce72a
5 changed files with 97 additions and 124 deletions

View file

@ -325,14 +325,6 @@ struct a2dp_codec {
int (*increase_bitpool) (void *data);
};
extern struct a2dp_codec a2dp_codec_sbc;
extern struct a2dp_codec a2dp_codec_aac;
#if ENABLE_MP3
extern const a2dp_mpeg_t bluez_a2dp_mpeg;
#endif
#if ENABLE_APTX
extern const a2dp_aptx_t bluez_a2dp_aptx;
#endif
extern const struct a2dp_codec **a2dp_codecs;
#endif