Lines Matching refs:p_pref
425 UINT8 bta_av_sbc_cfg_for_cap(UINT8 *p_peer, tA2D_SBC_CIE *p_cap, tA2D_SBC_CIE *p_pref) in bta_av_sbc_cfg_for_cap() argument
438 if (peer_cie.ch_mode & p_pref->ch_mode) in bta_av_sbc_cfg_for_cap()
440 peer_cie.ch_mode = p_pref->ch_mode; in bta_av_sbc_cfg_for_cap()
444 APPL_TRACE_ERROR("bta_av_sbc_cfg_for_cap: ch_mode(0x%02X) not supported", p_pref->ch_mode); in bta_av_sbc_cfg_for_cap()
449 if (peer_cie.samp_freq & p_pref->samp_freq) in bta_av_sbc_cfg_for_cap()
451 peer_cie.samp_freq = p_pref->samp_freq; in bta_av_sbc_cfg_for_cap()
455 … APPL_TRACE_ERROR("bta_av_sbc_cfg_for_cap: samp_freq(0x%02X) not supported", p_pref->samp_freq); in bta_av_sbc_cfg_for_cap()
460 if (peer_cie.block_len & p_pref->block_len) in bta_av_sbc_cfg_for_cap()
462 peer_cie.block_len = p_pref->block_len; in bta_av_sbc_cfg_for_cap()
466 … APPL_TRACE_ERROR("bta_av_sbc_cfg_for_cap: block_len(0x%02X) not supported", p_pref->block_len); in bta_av_sbc_cfg_for_cap()
471 if (peer_cie.num_subbands & p_pref->num_subbands) in bta_av_sbc_cfg_for_cap()
473 peer_cie.num_subbands = p_pref->num_subbands; in bta_av_sbc_cfg_for_cap()
477 …APPL_TRACE_ERROR("bta_av_sbc_cfg_for_cap: num_subbands(0x%02X) not supported", p_pref->num_subband… in bta_av_sbc_cfg_for_cap()
482 if (peer_cie.alloc_mthd & p_pref->alloc_mthd) in bta_av_sbc_cfg_for_cap()
484 peer_cie.alloc_mthd = p_pref->alloc_mthd; in bta_av_sbc_cfg_for_cap()
488 … APPL_TRACE_ERROR("bta_av_sbc_cfg_for_cap: alloc_mthd(0x%02X) not supported", p_pref->alloc_mthd); in bta_av_sbc_cfg_for_cap()
493 if (p_pref->max_bitpool != 0 && p_pref->max_bitpool < peer_cie.max_bitpool) in bta_av_sbc_cfg_for_cap()
495 peer_cie.max_bitpool = p_pref->max_bitpool; in bta_av_sbc_cfg_for_cap()
499 if (p_pref->min_bitpool != 0 && p_pref->min_bitpool > peer_cie.min_bitpool) in bta_av_sbc_cfg_for_cap()
501 peer_cie.min_bitpool = p_pref->min_bitpool; in bta_av_sbc_cfg_for_cap()