From dcf436d1f102621eca03e31b78decc92e92ad165 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Wed, 18 Nov 2020 09:51:11 +0100 Subject: [PATCH] avdtp: use configuration array as user provided storage --- example/a2dp_sink_demo.c | 6 +----- test/pts/avdtp_source_test.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/example/a2dp_sink_demo.c b/example/a2dp_sink_demo.c index 74deb630d..9404479f4 100644 --- a/example/a2dp_sink_demo.c +++ b/example/a2dp_sink_demo.c @@ -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; diff --git a/test/pts/avdtp_source_test.c b/test/pts/avdtp_source_test.c index 459e1002b..e821b7110 100644 --- a/test/pts/avdtp_source_test.c +++ b/test/pts/avdtp_source_test.c @@ -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,