mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-17 02:19:06 -05:00
* 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.
25 lines
1.1 KiB
C++
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
|