Home
last modified time | relevance | path

Searched refs:sampleRate (Results 1 – 25 of 25) sorted by relevance

/system/bt/stack/a2dp/
Da2dp_vendor_ldac.cc46 uint8_t sampleRate; /* Sampling Frequency */ member
130 *p_result = (uint8_t)(p_ie->sampleRate & A2DP_LDAC_SAMPLING_FREQ_MASK); in A2DP_BuildInfoLdac()
182 p_ie->sampleRate = *p_codec_info++ & A2DP_LDAC_SAMPLING_FREQ_MASK; in A2DP_ParseInfoLdac()
188 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoLdac()
196 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoLdac()
289 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityLdac()
294 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityLdac()
355 return (ldac_cie_a.sampleRate == ldac_cie_b.sampleRate) && in A2DP_VendorCodecEqualsLdac()
400 switch (ldac_cie.sampleRate) { in A2DP_VendorGetTrackSampleRateLdac()
554 AppendField(&field, (ldac_cie.sampleRate == 0), "NONE"); in A2DP_VendorCodecInfoStringLdac()
[all …]
Da2dp_aac.cc46 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()
[all …]
Da2dp_vendor_aptx.cc44 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()
[all …]
Da2dp_vendor_aptx_hd.cc44 uint8_t sampleRate; /* Sampling Frequency */ member
115 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptxHd()
166 p_ie->sampleRate = *p_codec_info & 0xF0; in A2DP_ParseInfoAptxHd()
177 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAptxHd()
185 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptxHd()
236 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAptxHd()
241 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAptxHd()
302 return (aptx_hd_cie_a.sampleRate == aptx_hd_cie_b.sampleRate) && in A2DP_VendorCodecEqualsAptxHd()
325 if (aptx_hd_cie.sampleRate == A2DP_APTX_HD_SAMPLERATE_44100) return 44100; in A2DP_VendorGetTrackSampleRateAptxHd()
326 if (aptx_hd_cie.sampleRate == A2DP_APTX_HD_SAMPLERATE_48000) return 48000; in A2DP_VendorGetTrackSampleRateAptxHd()
[all …]
Da2dp_aac_decoder.cc93 if (!info || info->sampleRate <= 0) { in a2dp_aac_decoder_decode_packet()
/system/media/audio_utils/include/audio_utils/
DTimestampVerifier.h46 constexpr TimestampVerifier(const F (&frames)[N], const T (&timeNs)[N], uint32_t sampleRate) { in TimestampVerifier() argument
48 add(frames[i], timeNs[i], sampleRate); in TimestampVerifier()
60 constexpr void add(F frames, T timeNs, uint32_t sampleRate) { in add() argument
67 if (mDiscontinuity || mSampleRate != sampleRate) { in add()
76 > kDiscontinuityZeroStartThresholdMs * sampleRate / MILLIS_PER_SECOND in add()
88 mSampleRate = sampleRate; in add()
90 assert(sampleRate != 0); in add()
93 || computeRatio(timestamp, mLastTimestamp, sampleRate) in add()
101 const double jitterMs = computeJitterMs(timestamp, mLastTimestamp, sampleRate); in add()
144 correctedTimestamp, mLastCorrectedTimestamp, sampleRate); in add()
[all …]
DPowerLog.h54 PowerLog(uint32_t sampleRate,
/system/media/audio_utils/spdif/
DDTSFrameScanner.cpp109 int32_t sampleRate = kDTSSampleRateTable[sfreq]; in parseHeader() local
110 if (sampleRate < 0) { in parseHeader()
111 ALOGE("DTSFrameScanner: ERROR - invalid sampleRate[%u] = %d", sfreq, sampleRate); in parseHeader()
114 mSampleRate = (uint32_t) sampleRate; in parseHeader()
/system/bt/audio_hal_interface/
Dclient_interface_unittest.cc113 (pcm_config.sampleRate != SampleRate::RATE_UNKNOWN && in IsSoftwarePcmParametersSupported()
117 (pcm_config.sampleRate & pcm_capabilities.sampleRate && in IsSoftwarePcmParametersSupported()
143 (sbc_config.sampleRate & sbc_capability.sampleRate && in IsOffloadCodecConfigurationSupported()
160 aac_config.sampleRate & aac_capability.sampleRate && in IsOffloadCodecConfigurationSupported()
174 (ldac_config.sampleRate & ldac_capability.sampleRate && in IsOffloadCodecConfigurationSupported()
186 (aptx_config.sampleRate & aptx_capability.sampleRate && in IsOffloadCodecConfigurationSupported()
206 pcm_config.sampleRate = sample_rate; in TEST_F()
250 .sampleRate = sample_rate, in TEST_F()
301 .sampleRate = sample_rate, in TEST_F()
341 .sampleRate = sample_rate, in TEST_F()
[all …]
Da2dp_encoding.cc302 sbc_config.sampleRate = a2dp_codec_to_hal_sample_rate(current_codec); in a2dp_get_selected_hal_codec_config()
303 if (sbc_config.sampleRate == SampleRate::RATE_UNKNOWN) { in a2dp_get_selected_hal_codec_config()
411 aac_config.sampleRate = a2dp_codec_to_hal_sample_rate(current_codec); in a2dp_get_selected_hal_codec_config()
412 if (aac_config.sampleRate == SampleRate::RATE_UNKNOWN) { in a2dp_get_selected_hal_codec_config()
456 aptx_config.sampleRate = a2dp_codec_to_hal_sample_rate(current_codec); in a2dp_get_selected_hal_codec_config()
457 if (aptx_config.sampleRate == SampleRate::RATE_UNKNOWN) { in a2dp_get_selected_hal_codec_config()
482 ldac_config.sampleRate = a2dp_codec_to_hal_sample_rate(current_codec); in a2dp_get_selected_hal_codec_config()
483 if (ldac_config.sampleRate == SampleRate::RATE_UNKNOWN) { in a2dp_get_selected_hal_codec_config()
567 pcm_config->sampleRate = a2dp_codec_to_hal_sample_rate(current_codec); in a2dp_get_selected_hal_pcm_config()
570 return (pcm_config->sampleRate != SampleRate::RATE_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
Dclient_interface.h160 .sampleRate = SampleRate::RATE_UNKNOWN,
Dhearing_aid_software_encoding.cc136 hal_pcm_config->sampleRate = SampleRate::RATE_16000; in HearingAidGetSelectedHalPcmConfig()
/system/chre/core/include/chre/core/
Daudio_request_manager.h117 uint32_t sampleCount, uint32_t sampleRate) { in getDurationFromSampleCountAndRate() argument
122 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate()
135 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() argument
141 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) in getSampleCountFromRateAndDuration()
/system/chre/chre_api/include/chre_api/chre/
Daudio.h126 uint32_t sampleRate; member
247 uint32_t sampleRate; member
/system/chre/chre_api/legacy/v1_2/chre/
Daudio.h126 uint32_t sampleRate; member
247 uint32_t sampleRate; member
/system/chre/apps/chqts/src/general_test/
Dbasic_audio_test.cc102 } else if (source.sampleRate > kMaxAudioSampleRate in validateAudioSource()
103 || source.sampleRate < kMinAudioSampleRate) { in validateAudioSource()
132 return (source.sampleRate == kRequiredSampleRate in validateMinimumAudioSource()
/system/media/audio_utils/tests/
Dtimestampverifier_tests.cpp28 size_t N, uint32_t sampleRate, size_t errors, size_t discontinuities) { in makeVerifier() argument
34 tv.add(f, t, sampleRate); in makeVerifier()
35 f += sampleRate; in makeVerifier()
/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc108 source.name, source.sampleRate, in discoverAudioHandle()
113 if (source.sampleRate == kBufferSampleRate in discoverAudioHandle()
/system/chre/platform/android/
Dplatform_audio.cc166 audioSource->sampleRate = kAndroidAudioSampleRate; in getAudioSource()
180 mDataEvent.sampleRate = kAndroidAudioSampleRate; in initAudioDataEvent()
/system/chre/platform/linux/
Dplatform_audio.cc117 audioSource->sampleRate = in getAudioSource()
158 source->dataEvent.sampleRate = in addAudioSource()
/system/media/audio_utils/
DPowerLog.cpp43 PowerLog::PowerLog(uint32_t sampleRate, in PowerLog() argument
53 , mSampleRate(sampleRate) in PowerLog()
/system/chre/apps/audio_world/
Daudio_world.cc127 audioSource.name, audioSource.sampleRate, in nanoappStart()
/system/chre/core/
Daudio_request_manager.cc118 handle, source.name, source.sampleRate, in logStateToBuffer()
154 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
/system/bt/audio_bluetooth_hw/
Ddevice_port_proxy.cc276 if (pcm_cfg.sampleRate == SampleRate::RATE_UNKNOWN || in LoadAudioConfig()
281 audio_cfg->sample_rate = SampleRateToAudioFormat(pcm_cfg.sampleRate); in LoadAudioConfig()
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc257 p_codec_info->sampleRate = in btif_a2dp_get_codec_configuration()