Lines Matching refs:p_sink
86 p_sink(nullptr), in BtaAvCoPeer()
143 const BtaAvCoSep* p_sink; // Currently selected sink member in BtaAvCoPeer
728 p_sink = nullptr; in Reset()
932 BtaAvCoSep* p_sink = &p_peer->sinks[p_peer->num_sup_sinks++]; in ProcessSourceGetConfig() local
938 memcpy(p_sink->codec_caps, p_codec_info, AVDT_CODEC_SIZE); in ProcessSourceGetConfig()
939 p_sink->sep_info_idx = *p_sep_info_idx; in ProcessSourceGetConfig()
940 p_sink->seid = seid; in ProcessSourceGetConfig()
941 p_sink->num_protect = *p_num_protect; in ProcessSourceGetConfig()
942 memcpy(p_sink->protect_info, p_protect_info, AVDT_CP_INFO_LEN); in ProcessSourceGetConfig()
960 const BtaAvCoSep* p_sink = nullptr; in ProcessSourceGetConfig() local
963 if (p_peer->p_sink == nullptr) { in ProcessSourceGetConfig()
965 p_peer->p_sink = in ProcessSourceGetConfig()
968 p_sink = p_peer->p_sink; in ProcessSourceGetConfig()
969 if (p_sink == nullptr) { in ProcessSourceGetConfig()
977 p_sink = FindPeerSink(p_peer, BTAV_A2DP_CODEC_INDEX_SOURCE_SBC); in ProcessSourceGetConfig()
978 if (p_sink != nullptr) { in ProcessSourceGetConfig()
993 high_priority_mandatory, &peer_params, p_sink->codec_caps, in ProcessSourceGetConfig()
1001 p_sink = SelectSourceCodec(p_peer); in ProcessSourceGetConfig()
1002 if (p_sink == nullptr) { in ProcessSourceGetConfig()
1017 *p_sep_info_idx = p_sink->sep_info_idx; in ProcessSourceGetConfig()
1026 BTA_AvReconfig(bta_av_handle, true, p_sink->sep_info_idx, in ProcessSourceGetConfig()
1488 const BtaAvCoSep* p_sink = nullptr; in SetCodecUserConfig() local
1518 p_sink = FindPeerSink(p_peer, codec_user_config.codec_type); in SetCodecUserConfig()
1521 p_sink = p_peer->p_sink; in SetCodecUserConfig()
1523 if (p_sink == nullptr) { in SetCodecUserConfig()
1534 codec_user_config, &peer_params, p_sink->codec_caps, in SetCodecUserConfig()
1547 p_sink = SelectSourceCodec(p_peer); in SetCodecUserConfig()
1548 if (p_sink == nullptr) { in SetCodecUserConfig()
1558 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecUserConfig()
1605 const BtaAvCoSep* p_sink = p_peer->p_sink; in SetCodecAudioConfig() local
1606 if (p_sink == nullptr) { in SetCodecAudioConfig()
1615 codec_audio_config, &peer_params, p_sink->codec_caps, in SetCodecAudioConfig()
1626 SaveNewCodecConfig(p_peer, result_codec_config, p_sink->num_protect, in SetCodecAudioConfig()
1627 p_sink->protect_info); in SetCodecAudioConfig()
1632 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecAudioConfig()
1760 const BtaAvCoSep* p_sink = nullptr; in SelectSourceCodec() local
1770 p_sink = AttemptSourceCodecSelection(*iter, p_peer); in SelectSourceCodec()
1771 if (p_sink != nullptr) { in SelectSourceCodec()
1777 return p_sink; in SelectSourceCodec()
1816 BtaAvCoSep* p_sink = &p_peer->sinks[index]; in FindPeerSink() local
1818 A2DP_SourceCodecIndex(p_sink->codec_caps); in FindPeerSink()
1822 if (!AudioSepHasContentProtection(p_sink)) { in FindPeerSink()
1829 return p_sink; in FindPeerSink()
1869 BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in AttemptSourceCodecSelection() local
1870 if (p_sink == nullptr) { in AttemptSourceCodecSelection()
1876 p_sink->codec_caps, true /* is_capability */, new_codec_config, in AttemptSourceCodecSelection()
1882 p_peer->p_sink = p_sink; in AttemptSourceCodecSelection()
1884 SaveNewCodecConfig(p_peer, new_codec_config, p_sink->num_protect, in AttemptSourceCodecSelection()
1885 p_sink->protect_info); in AttemptSourceCodecSelection()
1887 return p_sink; in AttemptSourceCodecSelection()
1937 const BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in UpdateSelectableSourceCodec() local
1938 if (p_sink == nullptr) { in UpdateSelectableSourceCodec()
1942 if (!p_peer->GetCodecs()->setPeerSinkCodecCapabilities(p_sink->codec_caps)) { in UpdateSelectableSourceCodec()
1945 A2DP_CodecName(p_sink->codec_caps)); in UpdateSelectableSourceCodec()
2022 const BtaAvCoSep* p_sink = in SetCodecOtaConfig() local
2024 if ((p_peer->num_sup_sinks > 0) && (p_sink == nullptr)) { in SetCodecOtaConfig()
2048 p_peer->p_sink = p_sink; in SetCodecOtaConfig()