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_decode(void *data,
}
const struct a2dp_codec a2dp_codec_sbc = {
.id = SPA_BLUETOOTH_AUDIO_CODEC_SBC,
.codec_id = A2DP_CODEC_SBC,
.name = "sbc",
.description = "SBC",
@ -646,6 +647,7 @@ const struct a2dp_codec a2dp_codec_sbc = {
};
const struct a2dp_codec a2dp_codec_sbc_xq = {
.id = SPA_BLUETOOTH_AUDIO_CODEC_SBC_XQ,
.codec_id = A2DP_CODEC_SBC,
.name = "sbc_xq",
.description = "SBC-XQ",