Lines Matching refs:p_peer
437 bool ReportSourceCodecState(BtaAvCoPeer* p_peer);
445 bool ReportSinkCodecState(BtaAvCoPeer* p_peer);
494 BtaAvCoSep* FindPeerSink(BtaAvCoPeer* p_peer,
504 BtaAvCoSep* FindPeerSource(BtaAvCoPeer* p_peer,
542 const BtaAvCoSep* SelectSourceCodec(BtaAvCoPeer* p_peer);
554 const BtaAvCoSep* SelectSinkCodec(BtaAvCoPeer* p_peer);
564 void SaveNewCodecConfig(BtaAvCoPeer* p_peer, const uint8_t* new_codec_config,
586 bool SetCodecOtaConfig(BtaAvCoPeer* p_peer, const uint8_t* p_ota_codec_config,
597 size_t UpdateAllSelectableSourceCodecs(BtaAvCoPeer* p_peer);
608 BtaAvCoPeer* p_peer);
617 size_t UpdateAllSelectableSinkCodecs(BtaAvCoPeer* p_peer);
628 BtaAvCoPeer* p_peer);
639 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer);
650 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer);
754 BtaAvCoPeer* p_peer = &peers_[i]; in Init() local
755 p_peer->Init(codec_priorities); in Init()
773 BtaAvCoPeer* p_peer = &peers_[i]; in Reset() local
774 p_peer->Reset(BTA_AV_CO_AUDIO_INDEX_TO_HANDLE(i)); in Reset()
807 BtaAvCoPeer* p_peer = &peers_[i]; in FindPeer() local
808 if (p_peer->addr == peer_address) { in FindPeer()
809 return p_peer; in FindPeer()
839 BtaAvCoPeer* p_peer = FindPeer(bta_av_handle); in FindPeerAndUpdate() local
840 if (p_peer == nullptr) { in FindPeerAndUpdate()
848 p_peer->addr.ToString().c_str()); in FindPeerAndUpdate()
849 p_peer->addr = peer_address; in FindPeerAndUpdate()
850 return p_peer; in FindPeerAndUpdate()
854 BtaAvCoPeer* p_peer = FindPeer(bta_av_handle); in FindPeerUuid() local
855 if (p_peer == nullptr) { in FindPeerUuid()
858 return p_peer->uuid_to_connect; in FindPeerUuid()
871 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessDiscoveryResult() local
872 if (p_peer == nullptr) { in ProcessDiscoveryResult()
880 if (p_peer->opened) { in ProcessDiscoveryResult()
886 p_peer->addr = peer_address; in ProcessDiscoveryResult()
887 p_peer->num_sinks = num_sinks; in ProcessDiscoveryResult()
888 p_peer->num_sources = num_sources; in ProcessDiscoveryResult()
889 p_peer->num_seps = num_seps; in ProcessDiscoveryResult()
890 p_peer->num_rx_sinks = 0; in ProcessDiscoveryResult()
891 p_peer->num_rx_sources = 0; in ProcessDiscoveryResult()
892 p_peer->num_sup_sinks = 0; in ProcessDiscoveryResult()
893 p_peer->num_sup_sources = 0; in ProcessDiscoveryResult()
895 p_peer->uuid_to_connect = UUID_SERVCLASS_AUDIO_SOURCE; in ProcessDiscoveryResult()
897 p_peer->uuid_to_connect = UUID_SERVCLASS_AUDIO_SINK; in ProcessDiscoveryResult()
915 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessSourceGetConfig() local
916 if (p_peer == nullptr) { in ProcessSourceGetConfig()
923 __func__, p_peer->opened, p_peer->num_sinks, in ProcessSourceGetConfig()
924 p_peer->num_rx_sinks, p_peer->num_sup_sinks); in ProcessSourceGetConfig()
926 p_peer->num_rx_sinks++; in ProcessSourceGetConfig()
931 if (p_peer->num_sup_sinks < BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks)) { in ProcessSourceGetConfig()
932 BtaAvCoSep* p_sink = &p_peer->sinks[p_peer->num_sup_sinks++]; in ProcessSourceGetConfig()
945 p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
951 if ((p_peer->num_rx_sinks != p_peer->num_sinks) && in ProcessSourceGetConfig()
952 (p_peer->num_sup_sinks != BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks))) { in ProcessSourceGetConfig()
956 __func__, p_peer->addr.ToString().c_str(), in ProcessSourceGetConfig()
957 p_peer->acceptor ? "acceptor" : "initiator"); in ProcessSourceGetConfig()
961 if (p_peer->acceptor) { in ProcessSourceGetConfig()
962 UpdateAllSelectableSourceCodecs(p_peer); in ProcessSourceGetConfig()
963 if (p_peer->p_sink == nullptr) { in ProcessSourceGetConfig()
965 p_peer->p_sink = in ProcessSourceGetConfig()
966 FindPeerSink(p_peer, A2DP_SourceCodecIndex(p_peer->codec_config)); in ProcessSourceGetConfig()
968 p_sink = p_peer->p_sink; in ProcessSourceGetConfig()
971 __func__, p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
975 if (btif_av_peer_prefers_mandatory_codec(p_peer->addr)) { in ProcessSourceGetConfig()
977 p_sink = FindPeerSink(p_peer, BTAV_A2DP_CODEC_INDEX_SOURCE_SBC); in ProcessSourceGetConfig()
980 p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
991 GetPeerEncoderParameters(p_peer->addr, &peer_params); in ProcessSourceGetConfig()
992 p_peer->GetCodecs()->setCodecUserConfig( in ProcessSourceGetConfig()
998 __func__, p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
1001 p_sink = SelectSourceCodec(p_peer); in ProcessSourceGetConfig()
1004 p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
1011 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in ProcessSourceGetConfig()
1019 p_peer->addr.ToString().c_str(), in ProcessSourceGetConfig()
1020 (p_peer->acceptor) ? "true" : "false", in ProcessSourceGetConfig()
1021 (p_peer->reconfig_needed) ? "true" : "false"); in ProcessSourceGetConfig()
1022 if (p_peer->acceptor) { in ProcessSourceGetConfig()
1023 if (p_peer->reconfig_needed) { in ProcessSourceGetConfig()
1025 bta_av_handle, p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
1027 p_peer->codec_config, *p_num_protect, bta_av_co_cp_scmst); in ProcessSourceGetConfig()
1030 memcpy(p_codec_info, p_peer->codec_config, AVDT_CODEC_SIZE); in ProcessSourceGetConfig()
1034 LOG(INFO) << __func__ << ": retrieved " << +p_peer->num_rx_sinks in ProcessSourceGetConfig()
1035 << " capabilities from peer " << p_peer->addr; in ProcessSourceGetConfig()
1036 ReportSourceCodecState(p_peer); in ProcessSourceGetConfig()
1059 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessSinkGetConfig() local
1060 if (p_peer == nullptr) { in ProcessSinkGetConfig()
1069 __func__, p_peer->addr.ToString().c_str(), p_peer->opened, in ProcessSinkGetConfig()
1070 p_peer->num_sources, p_peer->num_rx_sources, p_peer->num_sup_sources); in ProcessSinkGetConfig()
1072 p_peer->num_rx_sources++; in ProcessSinkGetConfig()
1077 if (p_peer->num_sup_sources < BTA_AV_CO_NUM_ELEMENTS(p_peer->sources)) { in ProcessSinkGetConfig()
1078 BtaAvCoSep* p_source = &p_peer->sources[p_peer->num_sup_sources++]; in ProcessSinkGetConfig()
1091 p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1097 if ((p_peer->num_rx_sources != p_peer->num_sources) && in ProcessSinkGetConfig()
1098 (p_peer->num_sup_sources != BTA_AV_CO_NUM_ELEMENTS(p_peer->sources))) { in ProcessSinkGetConfig()
1102 p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1106 if (p_peer->acceptor) { in ProcessSinkGetConfig()
1107 UpdateAllSelectableSinkCodecs(p_peer); in ProcessSinkGetConfig()
1108 if (p_peer->p_source == nullptr) { in ProcessSinkGetConfig()
1110 p_peer->p_source = in ProcessSinkGetConfig()
1111 FindPeerSource(p_peer, A2DP_SinkCodecIndex(p_peer->codec_config)); in ProcessSinkGetConfig()
1113 p_source = p_peer->p_source; in ProcessSinkGetConfig()
1116 __func__, p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1120 p_source = SelectSinkCodec(p_peer); in ProcessSinkGetConfig()
1123 p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1130 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in ProcessSinkGetConfig()
1138 p_peer->addr.ToString().c_str(), in ProcessSinkGetConfig()
1139 (p_peer->acceptor) ? "true" : "false", in ProcessSinkGetConfig()
1140 (p_peer->reconfig_needed) ? "true" : "false"); in ProcessSinkGetConfig()
1141 if (p_peer->acceptor) { in ProcessSinkGetConfig()
1142 if (p_peer->reconfig_needed) { in ProcessSinkGetConfig()
1144 bta_av_handle, p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1146 p_peer->codec_config, *p_num_protect, bta_av_co_cp_scmst); in ProcessSinkGetConfig()
1149 memcpy(p_codec_info, p_peer->codec_config, AVDT_CODEC_SIZE); in ProcessSinkGetConfig()
1180 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessSetConfig() local
1181 if (p_peer == nullptr) { in ProcessSetConfig()
1194 __func__, p_peer->addr.ToString().c_str(), p_peer->opened, in ProcessSetConfig()
1195 p_peer->num_sinks, p_peer->num_rx_sinks, p_peer->num_sup_sinks); in ProcessSetConfig()
1198 if (p_peer->opened) { in ProcessSetConfig()
1200 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1208 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1215 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1226 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1231 SaveNewCodecConfig(p_peer, p_codec_info, num_protect, p_protect_info); in ProcessSetConfig()
1236 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1240 if ((p_peer->GetCodecs() == nullptr) || in ProcessSetConfig()
1241 !SetCodecOtaConfig(p_peer, p_codec_info, num_protect, p_protect_info, in ProcessSetConfig()
1245 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1249 if (((num_protect == 1) && !p_peer->ContentProtectActive())) { in ProcessSetConfig()
1264 p_peer->addr.ToString().c_str(), status, category); in ProcessSetConfig()
1272 p_peer->acceptor = true; in ProcessSetConfig()
1273 p_peer->reconfig_needed = reconfig_needed; in ProcessSetConfig()
1275 p_peer->addr.ToString().c_str(), reconfig_needed); in ProcessSetConfig()
1287 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessOpen() local
1288 if (p_peer == nullptr) { in ProcessOpen()
1294 p_peer->opened = true; in ProcessOpen()
1295 p_peer->mtu = mtu; in ProcessOpen()
1299 active_peer_ = p_peer; in ProcessOpen()
1310 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessClose() local
1311 if (p_peer == nullptr) { in ProcessClose()
1318 if (active_peer_ == p_peer) { in ProcessClose()
1322 p_peer->Init(codec_priorities_); in ProcessClose()
1332 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessStart() local
1333 if (p_peer == nullptr) { in ProcessStart()
1341 A2DP_UsesRtpHeader(p_peer->ContentProtectActive(), p_codec_info); in ProcessStart()
1411 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in UpdateMtu() local
1412 if (p_peer == nullptr) { in UpdateMtu()
1417 p_peer->mtu = mtu; in UpdateMtu()
1433 BtaAvCoPeer* p_peer = FindPeer(peer_address); in SetActivePeer() local
1434 if (p_peer == nullptr) { in SetActivePeer()
1438 active_peer_ = p_peer; in SetActivePeer()
1456 const BtaAvCoPeer* p_peer = &peers_[i]; in GetPeerEncoderParameters() local
1457 if (!p_peer->opened) continue; in GetPeerEncoderParameters()
1458 if (p_peer->addr != peer_address) continue; in GetPeerEncoderParameters()
1459 if (p_peer->mtu < min_mtu) min_mtu = p_peer->mtu; in GetPeerEncoderParameters()
1499 BtaAvCoPeer* p_peer = FindPeer(peer_address); in SetCodecUserConfig() local
1500 if (p_peer == nullptr) { in SetCodecUserConfig()
1508 if ((p_peer->num_rx_sinks != p_peer->num_sinks) && in SetCodecUserConfig()
1509 (p_peer->num_sup_sinks != BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks))) { in SetCodecUserConfig()
1510 LOG(WARNING) << __func__ << ": peer " << p_peer->addr in SetCodecUserConfig()
1518 p_sink = FindPeerSink(p_peer, codec_user_config.codec_type); in SetCodecUserConfig()
1521 p_sink = p_peer->p_sink; in SetCodecUserConfig()
1524 LOG(ERROR) << __func__ << ": peer " << p_peer->addr in SetCodecUserConfig()
1532 GetPeerEncoderParameters(p_peer->addr, &peer_params); in SetCodecUserConfig()
1533 if (!p_peer->GetCodecs()->setCodecUserConfig( in SetCodecUserConfig()
1543 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in SetCodecUserConfig()
1547 p_sink = SelectSourceCodec(p_peer); in SetCodecUserConfig()
1549 LOG(ERROR) << __func__ << ": peer " << p_peer->addr in SetCodecUserConfig()
1555 p_peer->acceptor = false; in SetCodecUserConfig()
1557 << loghex(p_peer->BtaAvHandle()) << ")"; in SetCodecUserConfig()
1558 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecUserConfig()
1559 p_peer->codec_config, num_protect, bta_av_co_cp_scmst); in SetCodecUserConfig()
1572 if (p_peer != nullptr && in SetCodecUserConfig()
1573 (!restart_output || !success || p_peer != active_peer_)) { in SetCodecUserConfig()
1574 return ReportSourceCodecState(p_peer); in SetCodecUserConfig()
1590 BtaAvCoPeer* p_peer = active_peer_; in SetCodecAudioConfig() local
1591 if (p_peer == nullptr) { in SetCodecAudioConfig()
1597 if ((p_peer->num_rx_sinks != p_peer->num_sinks) && in SetCodecAudioConfig()
1598 (p_peer->num_sup_sinks != BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks))) { in SetCodecAudioConfig()
1599 LOG(WARNING) << __func__ << ": peer " << p_peer->addr in SetCodecAudioConfig()
1605 const BtaAvCoSep* p_sink = p_peer->p_sink; in SetCodecAudioConfig()
1607 LOG(ERROR) << __func__ << ": peer " << p_peer->addr in SetCodecAudioConfig()
1613 GetPeerEncoderParameters(p_peer->addr, &peer_params); in SetCodecAudioConfig()
1614 if (!p_peer->GetCodecs()->setCodecAudioConfig( in SetCodecAudioConfig()
1622 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in SetCodecAudioConfig()
1626 SaveNewCodecConfig(p_peer, result_codec_config, p_sink->num_protect, in SetCodecAudioConfig()
1629 p_peer->acceptor = false; in SetCodecAudioConfig()
1631 << loghex(p_peer->BtaAvHandle()) << ")"; in SetCodecAudioConfig()
1632 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecAudioConfig()
1633 p_peer->codec_config, num_protect, bta_av_co_cp_scmst); in SetCodecAudioConfig()
1639 return ReportSourceCodecState(p_peer); in SetCodecAudioConfig()
1645 bool BtaAvCo::ReportSourceCodecState(BtaAvCoPeer* p_peer) { in ReportSourceCodecState() argument
1650 VLOG(1) << __func__ << ": peer_address=" << p_peer->addr; in ReportSourceCodecState()
1651 A2dpCodecs* codecs = p_peer->GetCodecs(); in ReportSourceCodecState()
1656 LOG(WARNING) << __func__ << ": Peer " << p_peer->addr in ReportSourceCodecState()
1661 LOG(INFO) << __func__ << ": peer " << p_peer->addr << " codec_config={" in ReportSourceCodecState()
1663 btif_av_report_source_codec_state(p_peer->addr, codec_config, in ReportSourceCodecState()
1669 bool BtaAvCo::ReportSinkCodecState(BtaAvCoPeer* p_peer) { in ReportSinkCodecState() argument
1671 p_peer->addr.ToString().c_str()); in ReportSinkCodecState()
1759 const BtaAvCoSep* BtaAvCo::SelectSourceCodec(BtaAvCoPeer* p_peer) { in SelectSourceCodec() argument
1765 UpdateAllSelectableSourceCodecs(p_peer); in SelectSourceCodec()
1768 for (const auto& iter : p_peer->GetCodecs()->orderedSourceCodecs()) { in SelectSourceCodec()
1770 p_sink = AttemptSourceCodecSelection(*iter, p_peer); in SelectSourceCodec()
1780 const BtaAvCoSep* BtaAvCo::SelectSinkCodec(BtaAvCoPeer* p_peer) { in SelectSinkCodec() argument
1786 UpdateAllSelectableSinkCodecs(p_peer); in SelectSinkCodec()
1789 for (const auto& iter : p_peer->GetCodecs()->orderedSinkCodecs()) { in SelectSinkCodec()
1791 p_source = AttemptSinkCodecSelection(*iter, p_peer); in SelectSinkCodec()
1801 ReportSinkCodecState(p_peer); in SelectSinkCodec()
1806 BtaAvCoSep* BtaAvCo::FindPeerSink(BtaAvCoPeer* p_peer, in FindPeerSink() argument
1810 p_peer->addr.ToString().c_str()); in FindPeerSink()
1815 for (size_t index = 0; index < p_peer->num_sup_sinks; index++) { in FindPeerSink()
1816 BtaAvCoSep* p_sink = &p_peer->sinks[index]; in FindPeerSink()
1834 BtaAvCoSep* BtaAvCo::FindPeerSource(BtaAvCoPeer* p_peer, in FindPeerSource() argument
1838 p_peer->addr.ToString().c_str()); in FindPeerSource()
1843 for (size_t index = 0; index < p_peer->num_sup_sources; index++) { in FindPeerSource()
1844 BtaAvCoSep* p_source = &p_peer->sources[index]; in FindPeerSource()
1863 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer) { in AttemptSourceCodecSelection() argument
1869 BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in AttemptSourceCodecSelection()
1875 if (!p_peer->GetCodecs()->setCodecConfig( in AttemptSourceCodecSelection()
1882 p_peer->p_sink = p_sink; in AttemptSourceCodecSelection()
1884 SaveNewCodecConfig(p_peer, new_codec_config, p_sink->num_protect, in AttemptSourceCodecSelection()
1891 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer) { in AttemptSinkCodecSelection() argument
1897 BtaAvCoSep* p_source = FindPeerSource(p_peer, codec_config.codecIndex()); in AttemptSinkCodecSelection()
1903 if (!p_peer->GetCodecs()->setSinkCodecConfig( in AttemptSinkCodecSelection()
1910 p_peer->p_source = p_source; in AttemptSinkCodecSelection()
1912 SaveNewCodecConfig(p_peer, new_codec_config, p_source->num_protect, in AttemptSinkCodecSelection()
1918 size_t BtaAvCo::UpdateAllSelectableSourceCodecs(BtaAvCoPeer* p_peer) { in UpdateAllSelectableSourceCodecs() argument
1919 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateAllSelectableSourceCodecs()
1922 for (const auto& iter : p_peer->GetCodecs()->orderedSourceCodecs()) { in UpdateAllSelectableSourceCodecs()
1925 if (UpdateSelectableSourceCodec(*iter, p_peer)) { in UpdateAllSelectableSourceCodecs()
1933 BtaAvCoPeer* p_peer) { in UpdateSelectableSourceCodec() argument
1934 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateSelectableSourceCodec()
1937 const BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in UpdateSelectableSourceCodec()
1942 if (!p_peer->GetCodecs()->setPeerSinkCodecCapabilities(p_sink->codec_caps)) { in UpdateSelectableSourceCodec()
1944 __func__, p_peer->addr.ToString().c_str(), in UpdateSelectableSourceCodec()
1951 size_t BtaAvCo::UpdateAllSelectableSinkCodecs(BtaAvCoPeer* p_peer) { in UpdateAllSelectableSinkCodecs() argument
1952 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateAllSelectableSinkCodecs()
1955 for (const auto& iter : p_peer->GetCodecs()->orderedSinkCodecs()) { in UpdateAllSelectableSinkCodecs()
1958 if (UpdateSelectableSinkCodec(*iter, p_peer)) { in UpdateAllSelectableSinkCodecs()
1966 BtaAvCoPeer* p_peer) { in UpdateSelectableSinkCodec() argument
1967 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateSelectableSinkCodec()
1971 FindPeerSource(p_peer, codec_config.codecIndex()); in UpdateSelectableSinkCodec()
1976 if (!p_peer->GetCodecs()->setPeerSourceCodecCapabilities( in UpdateSelectableSinkCodec()
1979 __func__, p_peer->addr.ToString().c_str(), in UpdateSelectableSinkCodec()
1986 void BtaAvCo::SaveNewCodecConfig(BtaAvCoPeer* p_peer, in SaveNewCodecConfig() argument
1990 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in SaveNewCodecConfig()
1997 memcpy(p_peer->codec_config, new_codec_config, AVDT_CODEC_SIZE); in SaveNewCodecConfig()
2002 p_peer->SetContentProtectActive(cp_active); in SaveNewCodecConfig()
2006 bool BtaAvCo::SetCodecOtaConfig(BtaAvCoPeer* p_peer, in SetCodecOtaConfig() argument
2016 LOG(INFO) << __func__ << ": peer_address=" << p_peer->addr in SetCodecOtaConfig()
2023 FindPeerSink(p_peer, A2DP_SourceCodecIndex(p_ota_codec_config)); in SetCodecOtaConfig()
2024 if ((p_peer->num_sup_sinks > 0) && (p_sink == nullptr)) { in SetCodecOtaConfig()
2028 LOG(ERROR) << __func__ << ": peer " << p_peer->addr in SetCodecOtaConfig()
2034 GetPeerEncoderParameters(p_peer->addr, &peer_params); in SetCodecOtaConfig()
2035 if (!p_peer->GetCodecs()->setCodecOtaConfig( in SetCodecOtaConfig()
2038 LOG(ERROR) << __func__ << ": peer " << p_peer->addr in SetCodecOtaConfig()
2048 p_peer->p_sink = p_sink; in SetCodecOtaConfig()
2049 SaveNewCodecConfig(p_peer, result_codec_config, num_protect, in SetCodecOtaConfig()
2056 ReportSourceCodecState(p_peer); in SetCodecOtaConfig()
2206 BtaAvCoPeer* p_peer = bta_av_co_cb.FindPeer(peer_address); in bta_av_co_get_scmst_info() local
2207 CHECK(p_peer != nullptr); in bta_av_co_get_scmst_info()
2211 if (p_peer->ContentProtectActive()) { in bta_av_co_get_scmst_info()