avdtp: use configuration array as user provided storage

This commit is contained in:
Milanka Ringwald 2020-11-18 09:51:11 +01:00
parent d47b24a315
commit dcf436d1f1
2 changed files with 2 additions and 10 deletions

View File

@ -187,11 +187,7 @@ static uint8_t media_sbc_codec_capabilities[] = {
2, 53
};
static uint8_t media_sbc_codec_configuration[] = {
(AVDTP_SBC_44100 << 4) | AVDTP_SBC_STEREO,
(AVDTP_SBC_BLOCK_LENGTH_16 << 4) | (AVDTP_SBC_SUBBANDS_8 << 2) | AVDTP_SBC_ALLOCATION_METHOD_LOUDNESS,
2, 53
};
static uint8_t media_sbc_codec_configuration[4];
static int media_initialized = 0;
static btstack_resample_t resample_instance;

View File

@ -549,11 +549,7 @@ static const uint8_t media_sbc_codec_capabilities[] = {
2, 53
};
static const uint8_t media_sbc_codec_configuration[] = {
(AVDTP_SBC_44100 << 4) | AVDTP_SBC_STEREO,
(AVDTP_SBC_BLOCK_LENGTH_16 << 4) | (AVDTP_SBC_SUBBANDS_8 << 2) | AVDTP_SBC_ALLOCATION_METHOD_LOUDNESS,
2, 53
};
static uint8_t media_sbc_codec_configuration[4];
static const uint8_t media_sbc_codec_reconfiguration[] = {
(AVDTP_SBC_44100 << 4) | AVDTP_SBC_STEREO,