• Home
  • Raw
  • Download

Lines Matching refs:sampleRate

46   uint16_t sampleRate;            /* Sampling Frequency */  member
134 if (p_ie->sampleRate == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac()
135 *p_result++ = (uint8_t)(p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK0); in A2DP_BuildInfoAac()
136 *p_result = (uint8_t)((p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK1) >> 8); in A2DP_BuildInfoAac()
180 p_ie->sampleRate = (*p_codec_info & A2DP_AAC_SAMPLING_FREQ_MASK0) | in A2DP_ParseInfoAac()
199 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAac()
209 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAac()
283 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAac()
296 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_BAD_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAac()
357 (aac_cie_a.sampleRate == aac_cie_b.sampleRate) && in A2DP_CodecEqualsAac()
375 switch (aac_cie.sampleRate) { in A2DP_GetTrackSampleRateAac()
622 AppendField(&field, (aac_cie.sampleRate == 0), "NONE"); in A2DP_CodecInfoStringAac()
623 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_8000), in A2DP_CodecInfoStringAac()
625 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_11025), in A2DP_CodecInfoStringAac()
627 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_12000), in A2DP_CodecInfoStringAac()
629 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_16000), in A2DP_CodecInfoStringAac()
631 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_22050), in A2DP_CodecInfoStringAac()
633 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_24000), in A2DP_CodecInfoStringAac()
635 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_32000), in A2DP_CodecInfoStringAac()
637 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_44100), in A2DP_CodecInfoStringAac()
639 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_48000), in A2DP_CodecInfoStringAac()
641 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_64000), in A2DP_CodecInfoStringAac()
643 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_88200), in A2DP_CodecInfoStringAac()
645 AppendField(&field, (aac_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_96000), in A2DP_CodecInfoStringAac()
647 res << "\tsamp_freq: " << field << " (" << loghex(aac_cie.sampleRate) in A2DP_CodecInfoStringAac()
731 if (config_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) in build_codec_config()
733 if (config_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) in build_codec_config()
735 if (config_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) in build_codec_config()
737 if (config_cie.sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) in build_codec_config()
754 if (a2dp_aac_source_caps.sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) { in A2dpCodecConfigAacSource()
757 if (a2dp_aac_source_caps.sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) { in A2dpCodecConfigAacSource()
760 if (a2dp_aac_source_caps.sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) { in A2dpCodecConfigAacSource()
763 if (a2dp_aac_source_caps.sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) { in A2dpCodecConfigAacSource()
797 static bool select_best_sample_rate(uint16_t sampleRate, in select_best_sample_rate() argument
800 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) { in select_best_sample_rate()
801 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_96000; in select_best_sample_rate()
805 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) { in select_best_sample_rate()
806 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_88200; in select_best_sample_rate()
810 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) { in select_best_sample_rate()
811 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_48000; in select_best_sample_rate()
815 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) { in select_best_sample_rate()
816 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_44100; in select_best_sample_rate()
830 const btav_a2dp_codec_config_t* p_codec_audio_config, uint16_t sampleRate, in select_audio_sample_rate() argument
834 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) { in select_audio_sample_rate()
835 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_44100; in select_audio_sample_rate()
841 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) { in select_audio_sample_rate()
842 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_48000; in select_audio_sample_rate()
848 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) { in select_audio_sample_rate()
849 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_88200; in select_audio_sample_rate()
855 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) { in select_audio_sample_rate()
856 p_result->sampleRate = A2DP_AAC_SAMPLING_FREQ_96000; in select_audio_sample_rate()
995 uint16_t sampleRate; in setCodecConfig() local
1056 sampleRate = p_a2dp_aac_caps->sampleRate & peer_info_cie.sampleRate; in setCodecConfig()
1060 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) { in setCodecConfig()
1061 result_config_cie.sampleRate = A2DP_AAC_SAMPLING_FREQ_44100; in setCodecConfig()
1067 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) { in setCodecConfig()
1068 result_config_cie.sampleRate = A2DP_AAC_SAMPLING_FREQ_48000; in setCodecConfig()
1074 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) { in setCodecConfig()
1075 result_config_cie.sampleRate = A2DP_AAC_SAMPLING_FREQ_88200; in setCodecConfig()
1081 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) { in setCodecConfig()
1082 result_config_cie.sampleRate = A2DP_AAC_SAMPLING_FREQ_96000; in setCodecConfig()
1100 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) { in setCodecConfig()
1104 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) { in setCodecConfig()
1108 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) { in setCodecConfig()
1112 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) { in setCodecConfig()
1120 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) in setCodecConfig()
1122 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) in setCodecConfig()
1124 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) in setCodecConfig()
1126 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) in setCodecConfig()
1130 if (select_audio_sample_rate(&codec_audio_config_, sampleRate, in setCodecConfig()
1137 a2dp_aac_default_config.sampleRate & peer_info_cie.sampleRate, in setCodecConfig()
1143 if (select_best_sample_rate(sampleRate, &result_config_cie, in setCodecConfig()
1152 __func__, p_a2dp_aac_caps->sampleRate, peer_info_cie.sampleRate); in setCodecConfig()
1359 uint16_t sampleRate; in setPeerCodecCapabilities() local
1379 sampleRate = p_a2dp_aac_caps->sampleRate & peer_info_cie.sampleRate; in setPeerCodecCapabilities()
1380 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_44100) { in setPeerCodecCapabilities()
1384 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_48000) { in setPeerCodecCapabilities()
1388 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_88200) { in setPeerCodecCapabilities()
1392 if (sampleRate & A2DP_AAC_SAMPLING_FREQ_96000) { in setPeerCodecCapabilities()