~aleteoryx/muditaos

ref: 8021ebb5c1bf03ef2b6b483c48e44d03bc2d2f14 muditaos/module-bluetooth/Bluetooth/interface/profiles/A2DP/AVDTP.cpp -rw-r--r-- 1.0 KiB
8021ebb5 — Lefucjusz [MOS-1006] Fix modifying data in .text section when setting SN 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2017-2022, 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 bluetooth