bluez5: add bluetoothAudioCodec property to device

Also make the "codecless" profiles to automatically switch to the codec
profiles.
This commit is contained in:
Pauli Virtanen 2021-03-21 02:38:26 +02:00 committed by Wim Taymans
parent 6b0cf799c4
commit a552655edc
6 changed files with 292 additions and 133 deletions

View file

@ -624,6 +624,7 @@ static int codec_encode(void *data,
}
const struct a2dp_codec a2dp_codec_ldac = {
.id = SPA_BLUETOOTH_AUDIO_CODEC_LDAC,
.codec_id = A2DP_CODEC_VENDOR,
.vendor = { .vendor_id = LDAC_VENDOR_ID,
.codec_id = LDAC_CODEC_ID },