diff --git a/system/stack/a2dp/a2dp_sbc_encoder.cc b/system/stack/a2dp/a2dp_sbc_encoder.cc index 62db586cf5f3bb20e8a4478c2eeac8c7f83fa43e..0beb153f40048d095a5200bfdbd1c6b32eded5d1 100644 --- a/system/stack/a2dp/a2dp_sbc_encoder.cc +++ b/system/stack/a2dp/a2dp_sbc_encoder.cc @@ -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) { diff --git a/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc b/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc index cf5f5df2130dbd9386ef48687ac106cc8ba1afb9..51213e11e59ffe8a0c94478f7004d52103892417 100644 --- a/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc +++ b/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc @@ -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; diff --git a/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc b/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc index 5409faf7ce778e5627811548f9e419ba67978b6a..863ccb9ee892dde44956d5745e640403b9033c94 100644 --- a/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc +++ b/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc @@ -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;