Home
last modified time | relevance | path

Searched refs:p_ie (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_vendor_aptx_hd.cc102 const tA2DP_APTX_HD_CIE* p_ie, in A2DP_BuildInfoAptxHd() argument
104 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoAptxHd()
111 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoAptxHd()
112 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoAptxHd()
113 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoAptxHd()
114 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoAptxHd()
115 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoAptxHd()
116 *p_result++ = (uint8_t)((p_ie->codecId & 0xFF00) >> 8); in A2DP_BuildInfoAptxHd()
117 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptxHd()
118 *p_result++ = p_ie->acl_sprint_reserved0; in A2DP_BuildInfoAptxHd()
[all …]
Da2dp_sbc.cc127 const tA2DP_SBC_CIE* p_ie, in A2DP_BuildInfoSbc() argument
129 if (p_ie == NULL || p_result == NULL || in A2DP_BuildInfoSbc()
130 (p_ie->samp_freq & ~A2DP_SBC_IE_SAMP_FREQ_MSK) || in A2DP_BuildInfoSbc()
131 (p_ie->ch_mode & ~A2DP_SBC_IE_CH_MD_MSK) || in A2DP_BuildInfoSbc()
132 (p_ie->block_len & ~A2DP_SBC_IE_BLOCKS_MSK) || in A2DP_BuildInfoSbc()
133 (p_ie->num_subbands & ~A2DP_SBC_IE_SUBBAND_MSK) || in A2DP_BuildInfoSbc()
134 (p_ie->alloc_method & ~A2DP_SBC_IE_ALLOC_MD_MSK) || in A2DP_BuildInfoSbc()
135 (p_ie->min_bitpool > p_ie->max_bitpool) || in A2DP_BuildInfoSbc()
136 (p_ie->min_bitpool < A2DP_SBC_IE_MIN_BITPOOL) || in A2DP_BuildInfoSbc()
137 (p_ie->min_bitpool > A2DP_SBC_IE_MAX_BITPOOL) || in A2DP_BuildInfoSbc()
[all …]
Da2dp_vendor_opus.cc130 const tA2DP_OPUS_CIE* p_ie, in A2DP_BuildInfoOpus() argument
132 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoOpus()
142 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoOpus()
143 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoOpus()
144 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoOpus()
145 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoOpus()
146 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoOpus()
147 *p_result++ = (uint8_t)((p_ie->codecId & 0xFF00) >> 8); in A2DP_BuildInfoOpus()
150 *p_result |= (uint8_t)(p_ie->channelMode) & A2DP_OPUS_CHANNEL_MODE_MASK; in A2DP_BuildInfoOpus()
152 log::error("channelmode 0x{:X} setting failed", p_ie->channelMode); in A2DP_BuildInfoOpus()
[all …]
Da2dp_vendor_aptx.cc94 const tA2DP_APTX_CIE* p_ie, in A2DP_BuildInfoAptx() argument
96 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoAptx()
103 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoAptx()
104 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoAptx()
105 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoAptx()
106 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoAptx()
107 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoAptx()
108 *p_result++ = (uint8_t)((p_ie->codecId & 0xFF00) >> 8); in A2DP_BuildInfoAptx()
109 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptx()
120 static tA2DP_STATUS A2DP_ParseInfoAptx(tA2DP_APTX_CIE* p_ie, in A2DP_ParseInfoAptx() argument
[all …]
Da2dp_aac.cc145 const tA2DP_AAC_CIE* p_ie, in A2DP_BuildInfoAac() argument
147 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoAac()
156 if (p_ie->objectType == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac()
157 *p_result++ = p_ie->objectType; in A2DP_BuildInfoAac()
160 if (p_ie->sampleRate == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac()
161 *p_result++ = (uint8_t)(p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK0); in A2DP_BuildInfoAac()
162 *p_result = (uint8_t)((p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK1) >> 8); in A2DP_BuildInfoAac()
165 if (p_ie->channelMode == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac()
166 *p_result++ |= (p_ie->channelMode & A2DP_AAC_CHANNEL_MODE_MASK); in A2DP_BuildInfoAac()
169 *p_result = (p_ie->variableBitRateSupport & A2DP_AAC_VARIABLE_BIT_RATE_MASK); in A2DP_BuildInfoAac()
[all …]
Da2dp_vendor_ldac.cc113 const tA2DP_LDAC_CIE* p_ie, in A2DP_BuildInfoLdac() argument
115 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoLdac()
124 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoLdac()
125 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoLdac()
126 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoLdac()
127 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoLdac()
128 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoLdac()
129 *p_result++ = (uint8_t)((p_ie->codecId & 0xFF00) >> 8); in A2DP_BuildInfoLdac()
132 *p_result = (uint8_t)(p_ie->sampleRate & A2DP_LDAC_SAMPLING_FREQ_MASK); in A2DP_BuildInfoLdac()
137 *p_result = (uint8_t)(p_ie->channelMode & A2DP_LDAC_CHANNEL_MODE_MASK); in A2DP_BuildInfoLdac()
[all …]