• Home
  • Raw
  • Download

Lines Matching refs:sampleRate

44   uint8_t sampleRate;  /* Sampling Frequency */  member
108 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptx()
155 p_ie->sampleRate = *p_codec_info & 0xF0; in A2DP_ParseInfoAptx()
161 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAptx()
169 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptx()
218 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAptx()
223 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAptx()
288 return (aptx_cie_a.sampleRate == aptx_cie_b.sampleRate) && in A2DP_VendorCodecEqualsAptx()
310 if (aptx_cie.sampleRate == A2DP_APTX_SAMPLERATE_44100) return 44100; in A2DP_VendorGetTrackSampleRateAptx()
311 if (aptx_cie.sampleRate == A2DP_APTX_SAMPLERATE_48000) return 48000; in A2DP_VendorGetTrackSampleRateAptx()
383 AppendField(&field, (aptx_cie.sampleRate == 0), "NONE"); in A2DP_VendorCodecInfoStringAptx()
384 AppendField(&field, (aptx_cie.sampleRate & A2DP_APTX_SAMPLERATE_44100), in A2DP_VendorCodecInfoStringAptx()
386 AppendField(&field, (aptx_cie.sampleRate & A2DP_APTX_SAMPLERATE_48000), in A2DP_VendorCodecInfoStringAptx()
388 res << "\tsamp_freq: " << field << " (" << loghex(aptx_cie.sampleRate) in A2DP_VendorCodecInfoStringAptx()
449 if (a2dp_aptx_source_caps.sampleRate & A2DP_APTX_SAMPLERATE_44100) { in A2dpCodecConfigAptx()
452 if (a2dp_aptx_source_caps.sampleRate & A2DP_APTX_SAMPLERATE_48000) { in A2dpCodecConfigAptx()
486 static bool select_best_sample_rate(uint8_t sampleRate, in select_best_sample_rate() argument
489 if (sampleRate & A2DP_APTX_SAMPLERATE_48000) { in select_best_sample_rate()
490 p_result->sampleRate = A2DP_APTX_SAMPLERATE_48000; in select_best_sample_rate()
494 if (sampleRate & A2DP_APTX_SAMPLERATE_44100) { in select_best_sample_rate()
495 p_result->sampleRate = A2DP_APTX_SAMPLERATE_44100; in select_best_sample_rate()
509 const btav_a2dp_codec_config_t* p_codec_audio_config, uint8_t sampleRate, in select_audio_sample_rate() argument
513 if (sampleRate & A2DP_APTX_SAMPLERATE_44100) { in select_audio_sample_rate()
514 p_result->sampleRate = A2DP_APTX_SAMPLERATE_44100; in select_audio_sample_rate()
520 if (sampleRate & A2DP_APTX_SAMPLERATE_48000) { in select_audio_sample_rate()
521 p_result->sampleRate = A2DP_APTX_SAMPLERATE_48000; in select_audio_sample_rate()
627 uint8_t sampleRate; in setCodecConfig() local
664 sampleRate = a2dp_aptx_source_caps.sampleRate & peer_info_cie.sampleRate; in setCodecConfig()
668 if (sampleRate & A2DP_APTX_SAMPLERATE_44100) { in setCodecConfig()
669 result_config_cie.sampleRate = A2DP_APTX_SAMPLERATE_44100; in setCodecConfig()
675 if (sampleRate & A2DP_APTX_SAMPLERATE_48000) { in setCodecConfig()
676 result_config_cie.sampleRate = A2DP_APTX_SAMPLERATE_48000; in setCodecConfig()
696 if (sampleRate & A2DP_APTX_SAMPLERATE_44100) { in setCodecConfig()
700 if (sampleRate & A2DP_APTX_SAMPLERATE_48000) { in setCodecConfig()
708 if (sampleRate & A2DP_APTX_SAMPLERATE_44100) in setCodecConfig()
710 if (sampleRate & A2DP_APTX_SAMPLERATE_48000) in setCodecConfig()
714 if (select_audio_sample_rate(&codec_audio_config_, sampleRate, in setCodecConfig()
721 a2dp_aptx_default_config.sampleRate & peer_info_cie.sampleRate, in setCodecConfig()
727 if (select_best_sample_rate(sampleRate, &result_config_cie, in setCodecConfig()
736 __func__, a2dp_aptx_source_caps.sampleRate, in setCodecConfig()
737 peer_info_cie.sampleRate); in setCodecConfig()
929 uint8_t sampleRate; in setPeerCodecCapabilities() local
948 sampleRate = a2dp_aptx_source_caps.sampleRate & peer_info_cie.sampleRate; in setPeerCodecCapabilities()
949 if (sampleRate & A2DP_APTX_SAMPLERATE_44100) { in setPeerCodecCapabilities()
953 if (sampleRate & A2DP_APTX_SAMPLERATE_48000) { in setPeerCodecCapabilities()