Files
MuditaOS/module-bluetooth/Bluetooth/interface/profiles/A2DP/AVDTP.cpp
Lefucjusz 6ed82f3fa3 [MOS-1005] Fix handsfree ringing after caller hangs up
* Fix of the issue that incoming call triggered
handsfree ringing which didn't stop after
calling side hung up.
* Cleanup of several places in code, minor
bluetooth <-> cellular integration refactor.
2023-07-17 15:16:29 +02:00

25 lines
1.1 KiB
C++

// Copyright (c) 2017-2023, 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;
std::array<std::uint8_t, AVDTP::sbcCodecConfigurationSize> AVDTP::sbcCodecConfiguration;
btstack_sbc_encoder_state_t AVDTP::sbcEncoderState;
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 bluetooth