Loading system/bta/av/bta_av_aact.cc +20 −9 Original line number Original line Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include "bt_target.h" #include "bt_target.h" #include <base/logging.h> #include <base/logging.h> #include <base/strings/stringprintf.h> #include <string.h> #include <string.h> #include <vector> #include <vector> Loading @@ -52,6 +53,12 @@ #include "stack/include/btm_client_interface.h" #include "stack/include/btm_client_interface.h" #include "utl.h" #include "utl.h" namespace { constexpr char kBtmLogTag[] = "A2DP"; } /***************************************************************************** /***************************************************************************** * Constants * Constants ****************************************************************************/ ****************************************************************************/ Loading Loading @@ -1970,16 +1977,20 @@ void bta_av_reconfig(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) { alarm_cancel(p_scb->avrc_ct_timer); alarm_cancel(p_scb->avrc_ct_timer); APPL_TRACE_DEBUG( LOG_DEBUG("p_scb->sep_info_idx=%d p_scb->rcfg_idx=%d p_rcfg->sep_info_idx=%d", "%s: p_scb->sep_info_idx=%d p_scb->rcfg_idx=%d p_rcfg->sep_info_idx=%d", p_scb->sep_info_idx, p_scb->rcfg_idx, p_rcfg->sep_info_idx); __func__, p_scb->sep_info_idx, p_scb->rcfg_idx, p_rcfg->sep_info_idx); LOG_DEBUG("Peer capable codec: %s", APPL_TRACE_DEBUG("%s: codec: %s", __func__, A2DP_CodecInfoString(p_scb->peer_cap.codec_info).c_str()); A2DP_CodecInfoString(p_scb->peer_cap.codec_info).c_str()); APPL_TRACE_DEBUG("%s: codec: %s", __func__, LOG_DEBUG("Current codec: %s", A2DP_CodecInfoString(p_scb->cfg.codec_info).c_str()); A2DP_CodecInfoString(p_scb->cfg.codec_info).c_str()); APPL_TRACE_DEBUG("%s: codec: %s", __func__, LOG_DEBUG("Reconfig codec: %s", A2DP_CodecInfoString(p_rcfg->codec_info).c_str()); A2DP_CodecInfoString(p_rcfg->codec_info).c_str()); BTM_LogHistory( kBtmLogTag, p_scb->PeerAddress(), "Codec reconfig", base::StringPrintf("%s => %s", A2DP_CodecName(p_scb->cfg.codec_info), A2DP_CodecName(p_rcfg->codec_info))); p_cfg->num_protect = p_rcfg->num_protect; p_cfg->num_protect = p_rcfg->num_protect; memcpy(p_cfg->codec_info, p_rcfg->codec_info, AVDT_CODEC_SIZE); memcpy(p_cfg->codec_info, p_rcfg->codec_info, AVDT_CODEC_SIZE); memcpy(p_cfg->protect_info, p_rcfg->p_protect_info, p_rcfg->num_protect); memcpy(p_cfg->protect_info, p_rcfg->p_protect_info, p_rcfg->num_protect); Loading Loading
system/bta/av/bta_av_aact.cc +20 −9 Original line number Original line Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include "bt_target.h" #include "bt_target.h" #include <base/logging.h> #include <base/logging.h> #include <base/strings/stringprintf.h> #include <string.h> #include <string.h> #include <vector> #include <vector> Loading @@ -52,6 +53,12 @@ #include "stack/include/btm_client_interface.h" #include "stack/include/btm_client_interface.h" #include "utl.h" #include "utl.h" namespace { constexpr char kBtmLogTag[] = "A2DP"; } /***************************************************************************** /***************************************************************************** * Constants * Constants ****************************************************************************/ ****************************************************************************/ Loading Loading @@ -1970,16 +1977,20 @@ void bta_av_reconfig(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) { alarm_cancel(p_scb->avrc_ct_timer); alarm_cancel(p_scb->avrc_ct_timer); APPL_TRACE_DEBUG( LOG_DEBUG("p_scb->sep_info_idx=%d p_scb->rcfg_idx=%d p_rcfg->sep_info_idx=%d", "%s: p_scb->sep_info_idx=%d p_scb->rcfg_idx=%d p_rcfg->sep_info_idx=%d", p_scb->sep_info_idx, p_scb->rcfg_idx, p_rcfg->sep_info_idx); __func__, p_scb->sep_info_idx, p_scb->rcfg_idx, p_rcfg->sep_info_idx); LOG_DEBUG("Peer capable codec: %s", APPL_TRACE_DEBUG("%s: codec: %s", __func__, A2DP_CodecInfoString(p_scb->peer_cap.codec_info).c_str()); A2DP_CodecInfoString(p_scb->peer_cap.codec_info).c_str()); APPL_TRACE_DEBUG("%s: codec: %s", __func__, LOG_DEBUG("Current codec: %s", A2DP_CodecInfoString(p_scb->cfg.codec_info).c_str()); A2DP_CodecInfoString(p_scb->cfg.codec_info).c_str()); APPL_TRACE_DEBUG("%s: codec: %s", __func__, LOG_DEBUG("Reconfig codec: %s", A2DP_CodecInfoString(p_rcfg->codec_info).c_str()); A2DP_CodecInfoString(p_rcfg->codec_info).c_str()); BTM_LogHistory( kBtmLogTag, p_scb->PeerAddress(), "Codec reconfig", base::StringPrintf("%s => %s", A2DP_CodecName(p_scb->cfg.codec_info), A2DP_CodecName(p_rcfg->codec_info))); p_cfg->num_protect = p_rcfg->num_protect; p_cfg->num_protect = p_rcfg->num_protect; memcpy(p_cfg->codec_info, p_rcfg->codec_info, AVDT_CODEC_SIZE); memcpy(p_cfg->codec_info, p_rcfg->codec_info, AVDT_CODEC_SIZE); memcpy(p_cfg->protect_info, p_rcfg->p_protect_info, p_rcfg->num_protect); memcpy(p_cfg->protect_info, p_rcfg->p_protect_info, p_rcfg->num_protect); Loading