Lines Matching refs:channelMode
47 uint8_t channelMode; /* STEREO/MONO */ member
139 if (p_ie->channelMode == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac()
140 *p_result++ |= (p_ie->channelMode & A2DP_AAC_CHANNEL_MODE_MASK); in A2DP_BuildInfoAac()
183 p_ie->channelMode = *p_codec_info & A2DP_AAC_CHANNEL_MODE_MASK; in A2DP_ParseInfoAac()
201 if (A2DP_BitsSet(p_ie->channelMode) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAac()
211 if (A2DP_BitsSet(p_ie->channelMode) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAac()
285 cfg_cie.channelMode, p_cap->channelMode); in A2DP_CodecInfoMatchesCapabilityAac()
299 if ((cfg_cie.channelMode & p_cap->channelMode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilityAac()
358 (aac_cie_a.channelMode == aac_cie_b.channelMode) && in A2DP_CodecEqualsAac()
431 switch (aac_cie.channelMode) { in A2DP_GetTrackChannelCountAac()
452 switch (aac_cie.channelMode) { in A2DP_GetSinkTrackChannelTypeAac()
497 switch (aac_cie.channelMode) { in A2DP_GetChannelModeCodeAac()
500 return aac_cie.channelMode; in A2DP_GetChannelModeCodeAac()
652 AppendField(&field, (aac_cie.channelMode == 0), "NONE"); in A2DP_CodecInfoStringAac()
653 AppendField(&field, (aac_cie.channelMode == A2DP_AAC_CHANNEL_MODE_MONO), in A2DP_CodecInfoStringAac()
655 AppendField(&field, (aac_cie.channelMode == A2DP_AAC_CHANNEL_MODE_STEREO), in A2DP_CodecInfoStringAac()
657 res << "\tch_mode: " << field << " (" << loghex(aac_cie.channelMode) << ")\n"; in A2DP_CodecInfoStringAac()
742 if (config_cie.channelMode & A2DP_AAC_CHANNEL_MODE_MONO) in build_codec_config()
744 if (config_cie.channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in build_codec_config()
768 if (a2dp_aac_source_caps.channelMode & A2DP_AAC_CHANNEL_MODE_MONO) { in A2dpCodecConfigAacSource()
771 if (a2dp_aac_source_caps.channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in A2dpCodecConfigAacSource()
941 static bool select_best_channel_mode(uint8_t channelMode, in select_best_channel_mode() argument
944 if (channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in select_best_channel_mode()
945 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
949 if (channelMode & A2DP_AAC_CHANNEL_MODE_MONO) { in select_best_channel_mode()
950 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_MONO; in select_best_channel_mode()
964 const btav_a2dp_codec_config_t* p_codec_audio_config, uint8_t channelMode, in select_audio_channel_mode() argument
968 if (channelMode & A2DP_AAC_CHANNEL_MODE_MONO) { in select_audio_channel_mode()
969 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_MONO; in select_audio_channel_mode()
975 if (channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in select_audio_channel_mode()
976 p_result->channelMode = A2DP_AAC_CHANNEL_MODE_STEREO; in select_audio_channel_mode()
994 uint8_t channelMode; in setCodecConfig() local
1235 channelMode = p_a2dp_aac_caps->channelMode & peer_info_cie.channelMode; in setCodecConfig()
1239 if (channelMode & A2DP_AAC_CHANNEL_MODE_MONO) { in setCodecConfig()
1240 result_config_cie.channelMode = A2DP_AAC_CHANNEL_MODE_MONO; in setCodecConfig()
1246 if (channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in setCodecConfig()
1247 result_config_cie.channelMode = A2DP_AAC_CHANNEL_MODE_STEREO; in setCodecConfig()
1261 if (channelMode & A2DP_AAC_CHANNEL_MODE_MONO) { in setCodecConfig()
1265 if (channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in setCodecConfig()
1273 if (channelMode & A2DP_AAC_CHANNEL_MODE_MONO) in setCodecConfig()
1275 if (channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in setCodecConfig()
1280 if (select_audio_channel_mode(&codec_audio_config_, channelMode, in setCodecConfig()
1287 a2dp_aac_default_config.channelMode & peer_info_cie.channelMode, in setCodecConfig()
1293 if (select_best_channel_mode(channelMode, &result_config_cie, in setCodecConfig()
1302 __func__, p_a2dp_aac_caps->channelMode, in setCodecConfig()
1303 peer_info_cie.channelMode); in setCodecConfig()
1358 uint8_t channelMode; in setPeerCodecCapabilities() local
1402 channelMode = p_a2dp_aac_caps->channelMode & peer_info_cie.channelMode; in setPeerCodecCapabilities()
1403 if (channelMode & A2DP_AAC_CHANNEL_MODE_MONO) { in setPeerCodecCapabilities()
1407 if (channelMode & A2DP_AAC_CHANNEL_MODE_STEREO) { in setPeerCodecCapabilities()