• Home
  • Raw
  • Download

Lines Matching refs:p_sink

92         p_sink(nullptr),  in BtaAvCoPeer()
149 const BtaAvCoSep* p_sink; // Currently selected sink member in BtaAvCoPeer
730 p_sink = nullptr; in Reset()
934 BtaAvCoSep* p_sink = &p_peer->sinks[p_peer->num_sup_sinks++]; in ProcessSourceGetConfig() local
940 memcpy(p_sink->codec_caps, p_codec_info, AVDT_CODEC_SIZE); in ProcessSourceGetConfig()
941 p_sink->sep_info_idx = *p_sep_info_idx; in ProcessSourceGetConfig()
942 p_sink->seid = seid; in ProcessSourceGetConfig()
943 p_sink->num_protect = *p_num_protect; in ProcessSourceGetConfig()
944 memcpy(p_sink->protect_info, p_protect_info, AVDT_CP_INFO_LEN); in ProcessSourceGetConfig()
961 const BtaAvCoSep* p_sink = nullptr; in ProcessSourceGetConfig() local
964 if (p_peer->p_sink == nullptr) { in ProcessSourceGetConfig()
966 p_peer->p_sink = in ProcessSourceGetConfig()
969 p_sink = p_peer->p_sink; in ProcessSourceGetConfig()
970 if (p_sink == nullptr) { in ProcessSourceGetConfig()
976 p_sink = SelectSourceCodec(p_peer); in ProcessSourceGetConfig()
977 if (p_sink == nullptr) { in ProcessSourceGetConfig()
992 *p_sep_info_idx = p_sink->sep_info_idx; in ProcessSourceGetConfig()
1001 BTA_AvReconfig(bta_av_handle, true, p_sink->sep_info_idx, in ProcessSourceGetConfig()
1460 const BtaAvCoSep* p_sink = nullptr; in SetCodecUserConfig() local
1480 p_sink = FindPeerSink(p_peer, codec_user_config.codec_type); in SetCodecUserConfig()
1483 p_sink = p_peer->p_sink; in SetCodecUserConfig()
1485 if (p_sink == nullptr) { in SetCodecUserConfig()
1497 codec_user_config, &peer_params, p_sink->codec_caps, in SetCodecUserConfig()
1510 p_sink = SelectSourceCodec(p_peer); in SetCodecUserConfig()
1511 if (p_sink == nullptr) { in SetCodecUserConfig()
1530 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecUserConfig()
1564 const BtaAvCoSep* p_sink = p_peer->p_sink; in SetCodecAudioConfig() local
1565 if (p_sink == nullptr) { in SetCodecAudioConfig()
1574 codec_audio_config, &peer_params, p_sink->codec_caps, in SetCodecAudioConfig()
1585 SaveNewCodecConfig(p_peer, result_codec_config, p_sink->num_protect, in SetCodecAudioConfig()
1586 p_sink->protect_info); in SetCodecAudioConfig()
1598 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecAudioConfig()
1730 const BtaAvCoSep* p_sink = nullptr; in SelectSourceCodec() local
1740 p_sink = AttemptSourceCodecSelection(*iter, p_peer); in SelectSourceCodec()
1741 if (p_sink != nullptr) { in SelectSourceCodec()
1752 return p_sink; in SelectSourceCodec()
1791 BtaAvCoSep* p_sink = &p_peer->sinks[index]; in FindPeerSink() local
1793 A2DP_SourceCodecIndex(p_sink->codec_caps); in FindPeerSink()
1797 if (!AudioSepHasContentProtection(p_sink)) { in FindPeerSink()
1804 return p_sink; in FindPeerSink()
1844 BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in AttemptSourceCodecSelection() local
1845 if (p_sink == nullptr) { in AttemptSourceCodecSelection()
1851 p_sink->codec_caps, true /* is_capability */, new_codec_config, in AttemptSourceCodecSelection()
1857 p_peer->p_sink = p_sink; in AttemptSourceCodecSelection()
1859 SaveNewCodecConfig(p_peer, new_codec_config, p_sink->num_protect, in AttemptSourceCodecSelection()
1860 p_sink->protect_info); in AttemptSourceCodecSelection()
1862 return p_sink; in AttemptSourceCodecSelection()
1912 const BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in UpdateSelectableSourceCodec() local
1913 if (p_sink == nullptr) { in UpdateSelectableSourceCodec()
1917 if (!p_peer->GetCodecs()->setPeerSinkCodecCapabilities(p_sink->codec_caps)) { in UpdateSelectableSourceCodec()
1920 A2DP_CodecName(p_sink->codec_caps)); in UpdateSelectableSourceCodec()
1999 const BtaAvCoSep* p_sink = in SetCodecOtaConfig() local
2001 if ((p_peer->num_sup_sinks > 0) && (p_sink == nullptr)) { in SetCodecOtaConfig()
2026 p_peer->p_sink = p_sink; in SetCodecOtaConfig()