Home
last modified time | relevance | path

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

/system/bt/stack/a2dp/
Da2dp_vendor_ldac.cc45 uint8_t sampleRate; /* Sampling Frequency */ member
110 *p_result = (uint8_t)(p_ie->sampleRate & A2DP_LDAC_SAMPLING_FREQ_MASK); in A2DP_BuildInfoLdac()
162 p_ie->sampleRate = *p_codec_info++ & A2DP_LDAC_SAMPLING_FREQ_MASK; in A2DP_ParseInfoLdac()
167 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoLdac()
235 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityLdac()
240 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityLdac()
301 return (ldac_cie_a.sampleRate == ldac_cie_b.sampleRate) && in A2DP_VendorCodecEqualsLdac()
346 switch (ldac_cie.sampleRate) { in A2DP_VendorGetTrackSampleRateLdac()
448 AppendField(&field, (ldac_cie.sampleRate == 0), "NONE"); in A2DP_VendorCodecInfoStringLdac()
449 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_44100), 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()
198 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAac()
272 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAac()
285 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_BAD_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAac()
346 (aac_cie_a.sampleRate == aac_cie_b.sampleRate) && in A2DP_CodecEqualsAac()
364 switch (aac_cie.sampleRate) { in A2DP_GetTrackSampleRateAac()
[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()
160 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptx()
209 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAptx()
214 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAptx()
279 return (aptx_cie_a.sampleRate == aptx_cie_b.sampleRate) && in A2DP_VendorCodecEqualsAptx()
301 if (aptx_cie.sampleRate == A2DP_APTX_SAMPLERATE_44100) return 44100; in A2DP_VendorGetTrackSampleRateAptx()
302 if (aptx_cie.sampleRate == A2DP_APTX_SAMPLERATE_48000) return 48000; in A2DP_VendorGetTrackSampleRateAptx()
359 AppendField(&field, (aptx_cie.sampleRate == 0), "NONE"); in A2DP_VendorCodecInfoStringAptx()
[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()
176 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptxHd()
227 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAptxHd()
232 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAptxHd()
293 return (aptx_hd_cie_a.sampleRate == aptx_hd_cie_b.sampleRate) && in A2DP_VendorCodecEqualsAptxHd()
316 if (aptx_hd_cie.sampleRate == A2DP_APTX_HD_SAMPLERATE_44100) return 44100; in A2DP_VendorGetTrackSampleRateAptxHd()
317 if (aptx_hd_cie.sampleRate == A2DP_APTX_HD_SAMPLERATE_48000) return 48000; in A2DP_VendorGetTrackSampleRateAptxHd()
375 AppendField(&field, (aptx_hd_cie.sampleRate == 0), "NONE"); in A2DP_VendorCodecInfoStringAptxHd()
[all …]
Da2dp_aac_decoder.cc93 if (!info || info->sampleRate <= 0) { in a2dp_aac_decoder_decode_packet()
/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/chre/core/include/chre/core/
Daudio_request_manager.h109 uint32_t sampleCount, uint32_t sampleRate) { in getDurationFromSampleCountAndRate() argument
114 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate()
127 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() argument
133 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/apps/chqts/src/general_test/
Dbasic_audio_test.cc103 } else if (source.sampleRate > kMaxAudioSampleRate in validateAudioSource()
104 || source.sampleRate < kMinAudioSampleRate) { in validateAudioSource()
133 return (source.sampleRate == kRequiredSampleRate in validateMinimumAudioSource()
/system/chre/platform/slpi/
Dplatform_audio.cc37 == offsetof(struct chreAudioSource, sampleRate),
64 dataEvent->sampleRate = event->sample_rate_hz; in handleWcdSpiAudioDataEvent()
/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/include/audio_utils/
DPowerLog.h54 PowerLog(uint32_t sampleRate,
/system/media/audio_utils/
DPowerLog.cpp41 PowerLog::PowerLog(uint32_t sampleRate, in PowerLog() argument
51 , mSampleRate(sampleRate) in PowerLog()
/system/chre/apps/audio_world/
Daudio_world.cc127 audioSource.name, audioSource.sampleRate, in nanoappStart()
/system/chre/core/
Daudio_request_manager.cc170 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc175 p_codec_info->sampleRate = in btif_a2dp_get_codec_configuration()