Files
MuditaOS/module-bluetooth/Bluetooth/interface/profiles/A2DP/AVDTP.cpp
SP2FET 6befeb5073 [EGD-5316] Add Bluetooth run loop integration into worker
To be able to handle properly the Bluetooth stack we need to
get rid of doubled FreeRTOS task and do refactor of
the whole BT section. This is first part of refactor and it
includes integrating run loop into our worker and unifying
namespaces
2021-01-28 12:36:43 +01:00

25 lines
1.0 KiB
C++

// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "AVDTP.hpp"
namespace bluetooth
{
AVDTP::SbcConfiguration AVDTP::sbcConfig;
btstack_sbc_encoder_state_t AVDTP::sbcEncoderState;
std::array<uint8_t, 4> AVDTP::sbcCodecConfiguration;
int AVDTP::sampleRate = AVDTP::defaultSampleRate;
void AVDTP::dumpSbcConfiguration()
{
LOG_INFO("Received media codec configuration:");
LOG_INFO(" - numChannels: %d", sbcConfig.numChannels);
LOG_INFO(" - samplingFrequency: %d", sbcConfig.samplingFrequency);
LOG_INFO(" - channelMode: %d", sbcConfig.channelMode);
LOG_INFO(" - blockLength: %d", sbcConfig.blockLength);
LOG_INFO(" - subbands: %d", sbcConfig.subbands);
LOG_INFO(" - allocationMethod: %d", sbcConfig.allocationMethod);
LOG_INFO(" - bitpool_value [%d, %d] ", sbcConfig.minBitpoolValue, sbcConfig.maxBitpoolValue);
}
} // namespace Bt