• Home
  • Raw
  • Download

Lines Matching refs:cfg_cie

289   tA2DP_SBC_CIE cfg_cie;  in A2DP_IsSourceCodecValidSbc()  local
292 return (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, false) == A2DP_SUCCESS) || in A2DP_IsSourceCodecValidSbc()
293 (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, true) == A2DP_SUCCESS); in A2DP_IsSourceCodecValidSbc()
297 tA2DP_SBC_CIE cfg_cie; in A2DP_IsSinkCodecValidSbc() local
300 return (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, false) == A2DP_SUCCESS) || in A2DP_IsSinkCodecValidSbc()
301 (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, true) == A2DP_SUCCESS); in A2DP_IsSinkCodecValidSbc()
305 tA2DP_SBC_CIE cfg_cie; in A2DP_IsPeerSourceCodecValidSbc() local
308 return (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, false) == A2DP_SUCCESS) || in A2DP_IsPeerSourceCodecValidSbc()
309 (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, true) == A2DP_SUCCESS); in A2DP_IsPeerSourceCodecValidSbc()
313 tA2DP_SBC_CIE cfg_cie; in A2DP_IsPeerSinkCodecValidSbc() local
316 return (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, false) == A2DP_SUCCESS) || in A2DP_IsPeerSinkCodecValidSbc()
317 (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, true) == A2DP_SUCCESS); in A2DP_IsPeerSinkCodecValidSbc()
347 tA2DP_SBC_CIE cfg_cie; in A2DP_CodecInfoMatchesCapabilitySbc() local
350 status = A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, is_capability); in A2DP_CodecInfoMatchesCapabilitySbc()
359 cfg_cie.samp_freq, p_cap->samp_freq); in A2DP_CodecInfoMatchesCapabilitySbc()
361 cfg_cie.ch_mode, p_cap->ch_mode); in A2DP_CodecInfoMatchesCapabilitySbc()
363 cfg_cie.block_len, p_cap->block_len); in A2DP_CodecInfoMatchesCapabilitySbc()
365 cfg_cie.num_subbands, p_cap->num_subbands); in A2DP_CodecInfoMatchesCapabilitySbc()
367 cfg_cie.alloc_method, p_cap->alloc_method); in A2DP_CodecInfoMatchesCapabilitySbc()
369 cfg_cie.min_bitpool, p_cap->min_bitpool); in A2DP_CodecInfoMatchesCapabilitySbc()
371 cfg_cie.max_bitpool, p_cap->max_bitpool); in A2DP_CodecInfoMatchesCapabilitySbc()
374 if ((cfg_cie.samp_freq & p_cap->samp_freq) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilitySbc()
377 if ((cfg_cie.ch_mode & p_cap->ch_mode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilitySbc()
380 if ((cfg_cie.block_len & p_cap->block_len) == 0) return A2DP_BAD_BLOCK_LEN; in A2DP_CodecInfoMatchesCapabilitySbc()
383 if ((cfg_cie.num_subbands & p_cap->num_subbands) == 0) in A2DP_CodecInfoMatchesCapabilitySbc()
387 if ((cfg_cie.alloc_method & p_cap->alloc_method) == 0) in A2DP_CodecInfoMatchesCapabilitySbc()
391 if (cfg_cie.min_bitpool > p_cap->max_bitpool) return A2DP_NS_MIN_BITPOOL; in A2DP_CodecInfoMatchesCapabilitySbc()
394 if (cfg_cie.max_bitpool < p_cap->min_bitpool) return A2DP_NS_MAX_BITPOOL; in A2DP_CodecInfoMatchesCapabilitySbc()
796 tA2DP_SBC_CIE cfg_cie; in A2DP_AdjustCodecSbc() local
798 if (A2DP_ParseInfoSbc(&cfg_cie, p_codec_info, true) != A2DP_SUCCESS) in A2DP_AdjustCodecSbc()
802 if (cfg_cie.max_bitpool > A2DP_SBC_MAX_BITPOOL) { in A2DP_AdjustCodecSbc()
804 __func__, cfg_cie.max_bitpool, A2DP_SBC_MAX_BITPOOL); in A2DP_AdjustCodecSbc()
805 cfg_cie.max_bitpool = A2DP_SBC_MAX_BITPOOL; in A2DP_AdjustCodecSbc()
808 return (A2DP_BuildInfoSbc(AVDT_MEDIA_TYPE_AUDIO, &cfg_cie, p_codec_info) == in A2DP_AdjustCodecSbc()