/system/bt/stack/a2dp/ |
D | a2dp_vendor_ldac.cc | 45 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 …]
|
D | a2dp_aac.cc | 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() 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 …]
|
D | a2dp_vendor_aptx.cc | 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() 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 …]
|
D | a2dp_vendor_aptx_hd.cc | 44 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 …]
|
D | a2dp_aac_decoder.cc | 93 if (!info || info->sampleRate <= 0) { in a2dp_aac_decoder_decode_packet()
|
/system/media/audio_utils/spdif/ |
D | DTSFrameScanner.cpp | 109 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/ |
D | audio_request_manager.h | 109 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/ |
D | audio.h | 126 uint32_t sampleRate; member 247 uint32_t sampleRate; member
|
/system/chre/apps/chqts/src/general_test/ |
D | basic_audio_test.cc | 103 } else if (source.sampleRate > kMaxAudioSampleRate in validateAudioSource() 104 || source.sampleRate < kMinAudioSampleRate) { in validateAudioSource() 133 return (source.sampleRate == kRequiredSampleRate in validateMinimumAudioSource()
|
/system/chre/platform/slpi/ |
D | platform_audio.cc | 37 == offsetof(struct chreAudioSource, sampleRate), 64 dataEvent->sampleRate = event->sample_rate_hz; in handleWcdSpiAudioDataEvent()
|
/system/chre/platform/android/ |
D | platform_audio.cc | 166 audioSource->sampleRate = kAndroidAudioSampleRate; in getAudioSource() 180 mDataEvent.sampleRate = kAndroidAudioSampleRate; in initAudioDataEvent()
|
/system/chre/platform/linux/ |
D | platform_audio.cc | 117 audioSource->sampleRate = in getAudioSource() 158 source->dataEvent.sampleRate = in addAudioSource()
|
/system/media/audio_utils/include/audio_utils/ |
D | PowerLog.h | 54 PowerLog(uint32_t sampleRate,
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 41 PowerLog::PowerLog(uint32_t sampleRate, in PowerLog() argument 51 , mSampleRate(sampleRate) in PowerLog()
|
/system/chre/apps/audio_world/ |
D | audio_world.cc | 127 audioSource.name, audioSource.sampleRate, in nanoappStart()
|
/system/chre/core/ |
D | audio_request_manager.cc | 170 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
|
/system/bt/btif/src/ |
D | btif_a2dp_audio_interface.cc | 175 p_codec_info->sampleRate = in btif_a2dp_get_codec_configuration()
|