Lines Matching refs:p_ie

52 tA2D_STATUS A2D_BldSbcInfo(UINT8 media_type, tA2D_SBC_CIE *p_ie, UINT8 *p_result)  in A2D_BldSbcInfo()  argument
56 if( p_ie == NULL || p_result == NULL || in A2D_BldSbcInfo()
57 (p_ie->samp_freq & ~A2D_SBC_IE_SAMP_FREQ_MSK) || in A2D_BldSbcInfo()
58 (p_ie->ch_mode & ~A2D_SBC_IE_CH_MD_MSK) || in A2D_BldSbcInfo()
59 (p_ie->block_len & ~A2D_SBC_IE_BLOCKS_MSK) || in A2D_BldSbcInfo()
60 (p_ie->num_subbands & ~A2D_SBC_IE_SUBBAND_MSK) || in A2D_BldSbcInfo()
61 (p_ie->alloc_mthd & ~A2D_SBC_IE_ALLOC_MD_MSK) || in A2D_BldSbcInfo()
62 (p_ie->max_bitpool < p_ie->min_bitpool) || in A2D_BldSbcInfo()
63 (p_ie->max_bitpool < A2D_SBC_IE_MIN_BITPOOL) || in A2D_BldSbcInfo()
64 (p_ie->max_bitpool > A2D_SBC_IE_MAX_BITPOOL) || in A2D_BldSbcInfo()
65 (p_ie->min_bitpool < A2D_SBC_IE_MIN_BITPOOL) || in A2D_BldSbcInfo()
66 (p_ie->min_bitpool > A2D_SBC_IE_MAX_BITPOOL) ) in A2D_BldSbcInfo()
79 *p_result++ = p_ie->samp_freq | p_ie->ch_mode; in A2D_BldSbcInfo()
81 *p_result++ = p_ie->block_len | p_ie->num_subbands | p_ie->alloc_mthd; in A2D_BldSbcInfo()
83 *p_result++ = p_ie->min_bitpool; in A2D_BldSbcInfo()
84 *p_result = p_ie->max_bitpool; in A2D_BldSbcInfo()
107 tA2D_STATUS A2D_ParsSbcInfo(tA2D_SBC_CIE *p_ie, const UINT8 *p_info, in A2D_ParsSbcInfo() argument
113 if (p_ie == NULL || p_info == NULL) in A2D_ParsSbcInfo()
124 p_ie->samp_freq = *p_info & A2D_SBC_IE_SAMP_FREQ_MSK; in A2D_ParsSbcInfo()
125 p_ie->ch_mode = *p_info & A2D_SBC_IE_CH_MD_MSK; in A2D_ParsSbcInfo()
127 p_ie->block_len = *p_info & A2D_SBC_IE_BLOCKS_MSK; in A2D_ParsSbcInfo()
128 p_ie->num_subbands = *p_info & A2D_SBC_IE_SUBBAND_MSK; in A2D_ParsSbcInfo()
129 p_ie->alloc_mthd = *p_info & A2D_SBC_IE_ALLOC_MD_MSK; in A2D_ParsSbcInfo()
131 p_ie->min_bitpool = *p_info++; in A2D_ParsSbcInfo()
132 p_ie->max_bitpool = *p_info; in A2D_ParsSbcInfo()
133 if (p_ie->min_bitpool < A2D_SBC_IE_MIN_BITPOOL || p_ie->min_bitpool > A2D_SBC_IE_MAX_BITPOOL ) in A2D_ParsSbcInfo()
136 if (p_ie->max_bitpool < A2D_SBC_IE_MIN_BITPOOL || p_ie->max_bitpool > A2D_SBC_IE_MAX_BITPOOL || in A2D_ParsSbcInfo()
137 p_ie->max_bitpool < p_ie->min_bitpool) in A2D_ParsSbcInfo()
143 if (A2D_BitsSet(p_ie->samp_freq) != A2D_SET_ONE_BIT) in A2D_ParsSbcInfo()
145 if (A2D_BitsSet(p_ie->ch_mode) != A2D_SET_ONE_BIT) in A2D_ParsSbcInfo()
147 if (A2D_BitsSet(p_ie->block_len) != A2D_SET_ONE_BIT) in A2D_ParsSbcInfo()
149 if (A2D_BitsSet(p_ie->num_subbands) != A2D_SET_ONE_BIT) in A2D_ParsSbcInfo()
151 if (A2D_BitsSet(p_ie->alloc_mthd) != A2D_SET_ONE_BIT) in A2D_ParsSbcInfo()