Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5be18f10 authored by Henri Chataing's avatar Henri Chataing Committed by Gerrit Code Review
Browse files

Merge "a2dp: Remove verbose logs attached to getters" into main

parents 204f9819 38e1ba72
Loading
Loading
Loading
Loading
+0 −32
Original line number Diff line number Diff line
@@ -176,8 +176,6 @@ int A2dpCodecConfig::getTrackBitRate() const {
  memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_));
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_GetBitrateSbc();
@@ -1053,8 +1051,6 @@ tA2DP_CODEC_TYPE A2DP_GetCodecType(const uint8_t* p_codec_info) {
bool A2DP_IsSourceCodecValid(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_IsSourceCodecValidSbc(p_codec_info);
@@ -1074,8 +1070,6 @@ bool A2DP_IsSourceCodecValid(const uint8_t* p_codec_info) {
bool A2DP_IsSinkCodecValid(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_IsSinkCodecValidSbc(p_codec_info);
@@ -1095,8 +1089,6 @@ bool A2DP_IsSinkCodecValid(const uint8_t* p_codec_info) {
bool A2DP_IsPeerSourceCodecValid(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_IsPeerSourceCodecValidSbc(p_codec_info);
@@ -1116,8 +1108,6 @@ bool A2DP_IsPeerSourceCodecValid(const uint8_t* p_codec_info) {
bool A2DP_IsPeerSinkCodecValid(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_IsPeerSinkCodecValidSbc(p_codec_info);
@@ -1137,8 +1127,6 @@ bool A2DP_IsPeerSinkCodecValid(const uint8_t* p_codec_info) {
bool A2DP_IsSinkCodecSupported(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_IsSinkCodecSupportedSbc(p_codec_info);
@@ -1159,8 +1147,6 @@ bool A2DP_IsSinkCodecSupported(const uint8_t* p_codec_info) {
bool A2DP_IsPeerSourceCodecSupported(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_IsPeerSourceCodecSupportedSbc(p_codec_info);
@@ -1203,8 +1189,6 @@ uint8_t A2DP_GetMediaType(const uint8_t* p_codec_info) {
const char* A2DP_CodecName(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_CodecNameSbc(p_codec_info);
@@ -1273,8 +1257,6 @@ bool A2DP_CodecEquals(const uint8_t* p_codec_info_a,
int A2DP_GetTrackSampleRate(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_GetTrackSampleRateSbc(p_codec_info);
@@ -1295,8 +1277,6 @@ int A2DP_GetTrackSampleRate(const uint8_t* p_codec_info) {
int A2DP_GetTrackBitsPerSample(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_GetTrackBitsPerSampleSbc(p_codec_info);
@@ -1317,8 +1297,6 @@ int A2DP_GetTrackBitsPerSample(const uint8_t* p_codec_info) {
int A2DP_GetTrackChannelCount(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_GetTrackChannelCountSbc(p_codec_info);
@@ -1339,8 +1317,6 @@ int A2DP_GetTrackChannelCount(const uint8_t* p_codec_info) {
int A2DP_GetSinkTrackChannelType(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_GetSinkTrackChannelTypeSbc(p_codec_info);
@@ -1405,8 +1381,6 @@ const tA2DP_ENCODER_INTERFACE* A2DP_GetEncoderInterface(
    const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  if (::bluetooth::audio::a2dp::provider::supports_codec(
          A2DP_SourceCodecIndex(p_codec_info))) {
    return A2DP_GetEncoderInterfaceExt(p_codec_info);
@@ -1433,8 +1407,6 @@ const tA2DP_DECODER_INTERFACE* A2DP_GetDecoderInterface(
    const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  switch (codec_type) {
    case A2DP_MEDIA_CT_SBC:
      return A2DP_GetDecoderInterfaceSbc(p_codec_info);
@@ -1475,8 +1447,6 @@ bool A2DP_AdjustCodec(uint8_t* p_codec_info) {
btav_a2dp_codec_index_t A2DP_SourceCodecIndex(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  auto ext_codec_index =
      bluetooth::audio::a2dp::provider::source_codec_index(p_codec_info);
  if (ext_codec_index.has_value()) {
@@ -1503,8 +1473,6 @@ btav_a2dp_codec_index_t A2DP_SourceCodecIndex(const uint8_t* p_codec_info) {
btav_a2dp_codec_index_t A2DP_SinkCodecIndex(const uint8_t* p_codec_info) {
  tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info);

  log::verbose("codec_type = 0x{:x}", codec_type);

  auto ext_codec_index =
      bluetooth::audio::a2dp::provider::sink_codec_index(p_codec_info);
  if (ext_codec_index.has_value()) {