• Home
  • Raw
  • Download

Lines Matching refs:ch_mode

47   uint8_t ch_mode;      /* Channel mode */  member
126 (p_ie->ch_mode & ~A2DP_SBC_IE_CH_MD_MSK) || in A2DP_BuildInfoSbc()
144 *p_result++ = p_ie->samp_freq | p_ie->ch_mode; in A2DP_BuildInfoSbc()
181 p_ie->ch_mode = *p_codec_info & A2DP_SBC_IE_CH_MD_MSK; in A2DP_ParseInfoSbc()
205 if (A2DP_BitsSet(p_ie->ch_mode) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoSbc()
219 if (A2DP_BitsSet(p_ie->ch_mode) != A2DP_SET_ONE_BIT) return A2DP_BAD_CH_MODE; in A2DP_ParseInfoSbc()
361 cfg_cie.ch_mode, p_cap->ch_mode); in A2DP_CodecInfoMatchesCapabilitySbc()
377 if ((cfg_cie.ch_mode & p_cap->ch_mode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilitySbc()
452 (sbc_cie_a.ch_mode == sbc_cie_b.ch_mode) && in A2DP_CodecEqualsSbc()
510 switch (sbc_cie.ch_mode) { in A2DP_GetTrackChannelCountSbc()
604 switch (sbc_cie.ch_mode) { in A2DP_GetChannelModeCodeSbc()
683 switch (sbc_cie.ch_mode) { in A2DP_GetSinkTrackChannelTypeSbc()
741 AppendField(&field, (sbc_cie.ch_mode == 0), "NONE"); in A2DP_CodecInfoStringSbc()
742 AppendField(&field, (sbc_cie.ch_mode & A2DP_SBC_IE_CH_MD_MONO), "Mono"); in A2DP_CodecInfoStringSbc()
743 AppendField(&field, (sbc_cie.ch_mode & A2DP_SBC_IE_CH_MD_DUAL), "Dual"); in A2DP_CodecInfoStringSbc()
744 AppendField(&field, (sbc_cie.ch_mode & A2DP_SBC_IE_CH_MD_STEREO), "Stereo"); in A2DP_CodecInfoStringSbc()
745 AppendField(&field, (sbc_cie.ch_mode & A2DP_SBC_IE_CH_MD_JOINT), "Joint"); in A2DP_CodecInfoStringSbc()
746 res << "\tch_mode: " << field << " (" << loghex(sbc_cie.ch_mode) << ")\n"; in A2DP_CodecInfoStringSbc()
861 if (config_cie.ch_mode & A2DP_SBC_IE_CH_MD_MONO) in build_codec_config()
864 if (config_cie.ch_mode & (A2DP_SBC_IE_CH_MD_STEREO | A2DP_SBC_IE_CH_MD_JOINT | in build_codec_config()
883 if (a2dp_sbc_source_caps.ch_mode & A2DP_SBC_IE_CH_MD_MONO) { in A2dpCodecConfigSbcSource()
886 if (a2dp_sbc_source_caps.ch_mode & A2DP_SBC_IE_CH_MD_JOINT) { in A2dpCodecConfigSbcSource()
889 if (a2dp_sbc_source_caps.ch_mode & A2DP_SBC_IE_CH_MD_STEREO) { in A2dpCodecConfigSbcSource()
892 if (a2dp_sbc_source_caps.ch_mode & A2DP_SBC_IE_CH_MD_DUAL) { in A2dpCodecConfigSbcSource()
1006 static bool select_best_channel_mode(uint8_t ch_mode, tA2DP_SBC_CIE* p_result, in select_best_channel_mode() argument
1008 if (ch_mode & A2DP_SBC_IE_CH_MD_JOINT) { in select_best_channel_mode()
1009 p_result->ch_mode = A2DP_SBC_IE_CH_MD_JOINT; in select_best_channel_mode()
1013 if (ch_mode & A2DP_SBC_IE_CH_MD_STEREO) { in select_best_channel_mode()
1014 p_result->ch_mode = A2DP_SBC_IE_CH_MD_STEREO; in select_best_channel_mode()
1018 if (ch_mode & A2DP_SBC_IE_CH_MD_DUAL) { in select_best_channel_mode()
1019 p_result->ch_mode = A2DP_SBC_IE_CH_MD_DUAL; in select_best_channel_mode()
1023 if (ch_mode & A2DP_SBC_IE_CH_MD_MONO) { in select_best_channel_mode()
1024 p_result->ch_mode = A2DP_SBC_IE_CH_MD_MONO; in select_best_channel_mode()
1038 const btav_a2dp_codec_config_t* p_codec_audio_config, uint8_t ch_mode, in select_audio_channel_mode() argument
1042 if (ch_mode & A2DP_SBC_IE_CH_MD_MONO) { in select_audio_channel_mode()
1043 p_result->ch_mode = A2DP_SBC_IE_CH_MD_MONO; in select_audio_channel_mode()
1049 if (ch_mode & A2DP_SBC_IE_CH_MD_JOINT) { in select_audio_channel_mode()
1050 p_result->ch_mode = A2DP_SBC_IE_CH_MD_JOINT; in select_audio_channel_mode()
1054 if (ch_mode & A2DP_SBC_IE_CH_MD_STEREO) { in select_audio_channel_mode()
1055 p_result->ch_mode = A2DP_SBC_IE_CH_MD_STEREO; in select_audio_channel_mode()
1059 if (ch_mode & A2DP_SBC_IE_CH_MD_DUAL) { in select_audio_channel_mode()
1060 p_result->ch_mode = A2DP_SBC_IE_CH_MD_DUAL; in select_audio_channel_mode()
1079 uint8_t ch_mode; in setCodecConfig() local
1272 ch_mode = p_a2dp_sbc_caps->ch_mode & peer_info_cie.ch_mode; in setCodecConfig()
1276 if (ch_mode & A2DP_SBC_IE_CH_MD_MONO) { in setCodecConfig()
1277 result_config_cie.ch_mode = A2DP_SBC_IE_CH_MD_MONO; in setCodecConfig()
1283 if (ch_mode & A2DP_SBC_IE_CH_MD_JOINT) { in setCodecConfig()
1284 result_config_cie.ch_mode = A2DP_SBC_IE_CH_MD_JOINT; in setCodecConfig()
1289 if (ch_mode & A2DP_SBC_IE_CH_MD_STEREO) { in setCodecConfig()
1290 result_config_cie.ch_mode = A2DP_SBC_IE_CH_MD_STEREO; in setCodecConfig()
1295 if (ch_mode & A2DP_SBC_IE_CH_MD_DUAL) { in setCodecConfig()
1296 result_config_cie.ch_mode = A2DP_SBC_IE_CH_MD_DUAL; in setCodecConfig()
1311 if (ch_mode & A2DP_SBC_IE_CH_MD_MONO) { in setCodecConfig()
1315 if (ch_mode & A2DP_SBC_IE_CH_MD_JOINT) { in setCodecConfig()
1319 if (ch_mode & A2DP_SBC_IE_CH_MD_STEREO) { in setCodecConfig()
1323 if (ch_mode & A2DP_SBC_IE_CH_MD_DUAL) { in setCodecConfig()
1331 if (ch_mode & A2DP_SBC_IE_CH_MD_MONO) in setCodecConfig()
1333 if (ch_mode & (A2DP_SBC_IE_CH_MD_JOINT | A2DP_SBC_IE_CH_MD_STEREO | in setCodecConfig()
1339 if (select_audio_channel_mode(&codec_audio_config_, ch_mode, in setCodecConfig()
1346 a2dp_sbc_default_config.ch_mode & peer_info_cie.ch_mode, in setCodecConfig()
1352 if (select_best_channel_mode(ch_mode, &result_config_cie, &codec_config_)) { in setCodecConfig()
1360 __func__, p_a2dp_sbc_caps->ch_mode, peer_info_cie.ch_mode); in setCodecConfig()
1489 uint8_t ch_mode; in setPeerCodecCapabilities() local
1524 ch_mode = p_a2dp_sbc_caps->ch_mode & peer_info_cie.ch_mode; in setPeerCodecCapabilities()
1525 if (ch_mode & A2DP_SBC_IE_CH_MD_MONO) { in setPeerCodecCapabilities()
1529 if (ch_mode & A2DP_SBC_IE_CH_MD_JOINT) { in setPeerCodecCapabilities()
1533 if (ch_mode & A2DP_SBC_IE_CH_MD_STEREO) { in setPeerCodecCapabilities()
1537 if (ch_mode & A2DP_SBC_IE_CH_MD_DUAL) { in setPeerCodecCapabilities()