Lines Matching defs:p_result

116 // The result is stored in |p_result|. Returns A2DP_SUCCESS on success,
120 uint8_t* p_result) {
121 if (p_ie == NULL || p_result == NULL) {
125 *p_result++ = A2DP_AAC_CODEC_LEN;
126 *p_result++ = (media_type << 4);
127 *p_result++ = A2DP_MEDIA_CT_AAC;
131 *p_result++ = p_ie->objectType;
135 *p_result++ = (uint8_t)(p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK0);
136 *p_result = (uint8_t)((p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK1) >> 8);
140 *p_result++ |= (p_ie->channelMode & A2DP_AAC_CHANNEL_MODE_MASK);
143 *p_result = (p_ie->variableBitRateSupport & A2DP_AAC_VARIABLE_BIT_RATE_MASK);
146 *p_result++ |= (uint8_t)((p_ie->bitRate & A2DP_AAC_BIT_RATE_MASK0) >> 16);
147 *p_result++ = (uint8_t)((p_ie->bitRate & A2DP_AAC_BIT_RATE_MASK1) >> 8);
148 *p_result++ = (uint8_t)(p_ie->bitRate & A2DP_AAC_BIT_RATE_MASK2);
768 // The result is stored in |p_result| and |p_codec_config|.
772 tA2DP_AAC_CIE* p_result,
775 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_96000;
780 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_88200;
785 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_48000;
790 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_44100;
800 // The result is stored in |p_result| and |p_codec_config|.
805 tA2DP_AAC_CIE* p_result, btav_a2dp_codec_config_t* p_codec_config) {
809 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_44100;
816 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_48000;
823 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_88200;
830 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_96000;
848 // The result is stored in |p_result| and |p_codec_config|.
852 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_AAC_CIE* p_result,
856 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
861 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24;
866 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16;
875 // The result is stored in |p_result| and |p_codec_config|.
880 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_AAC_CIE* p_result,
886 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16;
893 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24;
900 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
912 // The result is stored in |p_result| and |p_codec_config|.
916 tA2DP_AAC_CIE* p_result,
919 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_STEREO;
924 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_MONO;
934 // The result is stored in |p_result| and |p_codec_config|.
939 tA2DP_AAC_CIE* p_result, btav_a2dp_codec_config_t* p_codec_config) {
943 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_MONO;
950 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_STEREO;