Skip to content
Snippets Groups Projects
Commit eab96967 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Reduced the log verbosity level for aptX/aptX-HD data packets"

parents 599adb83 7d9056f8
No related branches found
No related tags found
No related merge requests found
......@@ -752,7 +752,7 @@ static uint8_t calculate_max_frames_per_packet(void) {
// EDR and supports only 2 Mbps, but the effective AVDTP MTU size
// exceeds the 2DH5 packet size.
LOG_VERBOSE(LOG_TAG,
"%s: The remote devce is EDR but does not support 3 Mbps",
"%s: The remote device is EDR but does not support 3 Mbps",
__func__);
if (effective_mtu_size > MAX_2MBPS_AVDTP_MTU) {
......
......@@ -353,13 +353,13 @@ static void aptx_update_framing_params(tAPTX_FRAMING_PARAMS* framing_params) {
}
}
LOG_DEBUG(LOG_TAG,
"%s: sleep_time_ns = %" PRIu64
" aptx_bytes = %u "
"pcm_bytes_per_read = %u pcm_reads = %u frame_size_counter = %u",
__func__, framing_params->sleep_time_ns, framing_params->aptx_bytes,
framing_params->pcm_bytes_per_read, framing_params->pcm_reads,
framing_params->frame_size_counter);
LOG_VERBOSE(LOG_TAG,
"%s: sleep_time_ns = %" PRIu64
" aptx_bytes = %u "
"pcm_bytes_per_read = %u pcm_reads = %u frame_size_counter = %u",
__func__, framing_params->sleep_time_ns,
framing_params->aptx_bytes, framing_params->pcm_bytes_per_read,
framing_params->pcm_reads, framing_params->frame_size_counter);
}
void a2dp_vendor_aptx_feeding_reset(void) {
......@@ -423,8 +423,8 @@ void a2dp_vendor_aptx_send_frames(uint64_t timestamp_us) {
const int COMPRESSION_RATIO = 4;
size_t encoded_bytes = pcm_bytes_encoded / COMPRESSION_RATIO;
p_buf->len += encoded_bytes;
LOG_DEBUG(LOG_TAG, "%s: encoded %zu PCM bytes to %zu", __func__,
pcm_bytes_encoded, encoded_bytes);
LOG_VERBOSE(LOG_TAG, "%s: encoded %zu PCM bytes to %zu", __func__,
pcm_bytes_encoded, encoded_bytes);
// Update the RTP timestamp
*((uint32_t*)(p_buf + 1)) = a2dp_aptx_encoder_cb.timestamp;
......
......@@ -337,13 +337,13 @@ static void aptx_hd_update_framing_params(
framing_params->frame_size_counter = 0;
}
LOG_DEBUG(LOG_TAG,
"%s: sleep_time_ns = %" PRIu64
" aptx_hd_bytes = %u "
"pcm_bytes_per_read = %u pcm_reads = %u frame_size_counter = %u",
__func__, framing_params->sleep_time_ns,
framing_params->aptx_hd_bytes, framing_params->pcm_bytes_per_read,
framing_params->pcm_reads, framing_params->frame_size_counter);
LOG_VERBOSE(LOG_TAG,
"%s: sleep_time_ns = %" PRIu64
" aptx_hd_bytes = %u "
"pcm_bytes_per_read = %u pcm_reads = %u frame_size_counter = %u",
__func__, framing_params->sleep_time_ns,
framing_params->aptx_hd_bytes, framing_params->pcm_bytes_per_read,
framing_params->pcm_reads, framing_params->frame_size_counter);
}
void a2dp_vendor_aptx_hd_feeding_reset(void) {
......@@ -376,8 +376,8 @@ void a2dp_vendor_aptx_hd_send_frames(uint64_t timestamp_us) {
//
// Read the PCM data and encode it
//
LOG_DEBUG(LOG_TAG, "%s: %u PCM reads of size %u", __func__,
framing_params->pcm_reads, framing_params->pcm_bytes_per_read);
LOG_VERBOSE(LOG_TAG, "%s: %u PCM reads of size %u", __func__,
framing_params->pcm_reads, framing_params->pcm_bytes_per_read);
size_t encoded_ptr_index = 0;
size_t pcm_bytes_encoded = 0;
a2dp_aptx_hd_encoder_cb.stats.media_read_total_expected_packets++;
......@@ -409,8 +409,8 @@ void a2dp_vendor_aptx_hd_send_frames(uint64_t timestamp_us) {
const int COMPRESSION_RATIO = 4;
size_t encoded_bytes = pcm_bytes_encoded / COMPRESSION_RATIO;
p_buf->len += encoded_bytes;
LOG_DEBUG(LOG_TAG, "%s: encoded %zu PCM bytes to %zu", __func__,
pcm_bytes_encoded, encoded_bytes);
LOG_VERBOSE(LOG_TAG, "%s: encoded %zu PCM bytes to %zu", __func__,
pcm_bytes_encoded, encoded_bytes);
// Update the RTP timestamp
*((uint32_t*)(p_buf + 1)) = a2dp_aptx_hd_encoder_cb.timestamp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment