/hardware/interfaces/bluetooth/audio/2.0/default/session/ |
D | BluetoothAudioSupportedCodecsDB.cpp | 46 .sampleRate = static_cast<SampleRate>( 60 .sampleRate = SampleRate::RATE_44100, 75 .sampleRate = SampleRate::RATE_44100, 83 .sampleRate = static_cast<SampleRate>( 95 .sampleRate = static_cast<SampleRate>(SampleRate::RATE_44100 | 103 .sampleRate = static_cast<SampleRate>(SampleRate::RATE_44100 | 149 if (!IsSingleBit(static_cast<uint32_t>(sbc_data.sampleRate), 0xff) || in IsOffloadSbcConfigurationValid() 159 } else if ((sbc_data.sampleRate & kDefaultOffloadSbcCapability.sampleRate) && in IsOffloadSbcConfigurationValid() 189 !IsSingleBit(static_cast<uint32_t>(aac_data.sampleRate), 0xff) || in IsOffloadAacConfigurationValid() 196 (aac_data.sampleRate & kDefaultOffloadAacCapability.sampleRate) && in IsOffloadAacConfigurationValid() [all …]
|
/hardware/libhardware_legacy/audio/ |
D | AudioDumpInterface.cpp | 60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument 68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream() 72 lRate = outFinal->sampleRate(); in openOutputStream() 88 if (sampleRate != 0) { in openOutputStream() 89 if (*sampleRate != 0) { in openOutputStream() 90 lRate = *sampleRate; in openOutputStream() 92 *sampleRate = lRate; in openOutputStream() 127 uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) in openInputStream() argument 134 …inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream() 138 lRate = inFinal->sampleRate(); in openInputStream() [all …]
|
D | AudioHardwareStub.cpp | 46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument 49 status_t lStatus = out->set(format, channels, sampleRate); in openOutputStream() 65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument 74 status_t lStatus = in->set(format, channels, sampleRate, acoustics); in openInputStream() 123 if (pRate) *pRate = sampleRate(); in set() 132 audio_channel_count_from_out_mask(channels()) / sampleRate()); in write() 147 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump() 179 audio_channel_count_from_in_mask(channels()) / sampleRate()); in read() 191 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
|
D | AudioHardwareInterface.cpp | 113 size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) in getInputBufferSize() argument 115 if (sampleRate != 8000) { in getInputBufferSize() 116 ALOGW("getInputBufferSize bad sampling rate: %d", sampleRate); in getInputBufferSize() 156 uint32_t *sampleRate, in openOutputStreamWithFlags() argument 159 return openOutputStream(devices, format, channels, sampleRate, status); in openOutputStreamWithFlags()
|
D | AudioDumpInterface.h | 42 uint32_t sampleRate); 46 virtual uint32_t sampleRate() const; 84 uint32_t sampleRate); 87 virtual uint32_t sampleRate() const; 125 uint32_t *sampleRate=0, 149 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount); 152 uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics);
|
D | AudioHardwareGeneric.cpp | 68 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument 82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream() 102 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument 122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream() 207 if (lRate == 0) lRate = sampleRate(); in set() 212 (lRate != sampleRate())) { in set() 215 if (pRate) *pRate = sampleRate(); in set() 252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump() 325 (*pRate != sampleRate())) { in set() 329 *pRate = sampleRate(); in set() [all …]
|
D | A2dpAudioInterface.h | 52 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount); 59 uint32_t *sampleRate=0, 67 uint32_t *sampleRate, 85 virtual uint32_t sampleRate() const { return 44100; } in sampleRate() function 90 …virtual uint32_t latency() const { return ((1000*bufferSize())/frameSize())/sampleRate() + 200;… in latency()
|
D | A2dpAudioInterface.cpp | 65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument 69 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream() 83 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { in openOutputStream() 108 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, in openInputStream() argument 111 …return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream() 203 size_t A2dpAudioInterface::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) in getInputBufferSize() argument 205 return mHardwareInterface->getInputBufferSize(sampleRate, format, channelCount); in getInputBufferSize() 248 if (lRate == 0) lRate = sampleRate(); in set() 253 (lRate != sampleRate())){ in set() 256 if (pRate) *pRate = sampleRate(); in set() [all …]
|
D | AudioHardwareStub.h | 33 virtual uint32_t sampleRate() const { return 44100; } in sampleRate() function 50 virtual uint32_t sampleRate() const { return 8000; } in sampleRate() function 83 uint32_t *sampleRate=0, 91 uint32_t *sampleRate,
|
D | AudioHardwareGeneric.h | 50 virtual uint32_t sampleRate() const { return 44100; } in sampleRate() function 84 virtual uint32_t sampleRate() const { return 8000; } in sampleRate() function 124 uint32_t *sampleRate=0, 132 uint32_t *sampleRate,
|
/hardware/qcom/audio/legacy/alsa_sound/ |
D | AudioHardwareALSA.cpp | 724 uint32_t *sampleRate, in openOutputStream() argument 729 devices, *channels, *sampleRate); in openOutputStream() 747 ((*sampleRate == VOIP_SAMPLING_RATE_8K) || (*sampleRate == VOIP_SAMPLING_RATE_16K))) { in openOutputStream() 762 if(*sampleRate == VOIP_SAMPLING_RATE_8K) { in openOutputStream() 765 else if(*sampleRate == VOIP_SAMPLING_RATE_16K) { in openOutputStream() 769 ALOGE("unsupported samplerate %d for voip",*sampleRate); in openOutputStream() 783 alsa_handle.sampleRate = *sampleRate; in openOutputStream() 828 err = out->set(format, channels, sampleRate, devices); in openOutputStream() 868 if (0 == *sampleRate) { in openOutputStream() 869 alsa_handle.sampleRate = info.AudioBlocksArray[info.nAudioBlocks-1].nSamplingFreq; in openOutputStream() [all …]
|
D | AudioUsbALSA.h | 90 …struct pcm * configureDevice(unsigned flags, char* hw, int sampleRate, int channelCount, int perio… 109 …status_t setHardwareParams(pcm *local_handle, uint32_t sampleRate, uint32_t channels, int periodSi… 115 status_t getCap(char * type, int &channels, int &sampleRate);
|
D | AudioHardwareALSA.h | 174 uint32_t sampleRate; member 274 uint32_t sampleRate() const; 298 virtual uint32_t sampleRate() const in sampleRate() function 300 return ALSAStreamOps::sampleRate(); in sampleRate() 354 virtual uint32_t sampleRate() const in sampleRate() function 356 return ALSAStreamOps::sampleRate(); in sampleRate() 487 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channels); 507 uint32_t *sampleRate=0, 516 uint32_t *sampleRate,
|
D | AudioUsbALSA.cpp | 91 status_t AudioUsbALSA::getCap(char * type, int &channels, int &sampleRate) in getCap() argument 104 sampleRate = 0; in getCap() 216 sampleRate = ratesSupported[i]; in getCap() 220 ALOGD("sampleRate: %d", sampleRate); in getCap() 278 status_t AudioUsbALSA::setHardwareParams(pcm *txHandle, uint32_t sampleRate, uint32_t channels, int… in setHardwareParams() argument 284 unsigned int requestedRate = sampleRate; in setHardwareParams() 299 ALOGV("Setting period size:%d samplerate:%d, channels: %d",periodBytes,sampleRate, channels); in setHardwareParams() 306 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, sampleRate); in setHardwareParams() 389 uint32_t sampleRate; in RecordingThreadEntry() local 590 struct pcm * AudioUsbALSA::configureDevice(unsigned flags, char* hw, int sampleRate, int channelCou… in configureDevice() argument [all …]
|
D | ALSAStreamOps.cpp | 135 if (mHandle->sampleRate != *rate) in set() 138 *rate = mHandle->sampleRate; in set() 295 uint32_t ALSAStreamOps::sampleRate() const in sampleRate() function in android_audio_legacy::ALSAStreamOps 297 return mHandle->sampleRate; in sampleRate()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehicleHalManager.cpp | 145 ops.sampleRate = checkSampleRate(*config, ops.sampleRate); in subscribe() 158 mHal->subscribe(opt.propId, opt.sampleRate); in subscribe() 257 float sampleRate) { in checkSampleRate() argument 259 if (std::abs(sampleRate) > std::numeric_limits<float>::epsilon()) { in checkSampleRate() 265 if (sampleRate > config.maxSampleRate) { in checkSampleRate() 267 "to max.", sampleRate, config.maxSampleRate); in checkSampleRate() 270 if (sampleRate < config.minSampleRate) { in checkSampleRate() 272 "to min.", sampleRate, config.minSampleRate); in checkSampleRate() 276 return sampleRate; // Provided sample rate was good, no changes. in checkSampleRate()
|
D | SubscriptionManager.cpp | 37 float updatedRate = std::max(oldOpts.sampleRate, newOpts.sampleRate); in mergeSubscribeOptions() 40 bool updated = (updatedRate > oldOpts.sampleRate) || (updatedFlags != oldOpts.flags); in mergeSubscribeOptions() 43 outResult->sampleRate = updatedRate; in mergeSubscribeOptions()
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
D | AudioHardwareInterface.h | 52 virtual uint32_t sampleRate() const = 0; 136 virtual uint32_t sampleRate() const = 0; 250 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount) = 0; 257 uint32_t *sampleRate=0, 264 uint32_t *sampleRate=0, 273 uint32_t *sampleRate,
|
/hardware/interfaces/bluetooth/audio/2.0/vts/functional/ |
D | VtsHalBluetoothAudioV2_0TargetTest.cpp | 270 (pcm_parameters.sampleRate != SampleRate::RATE_UNKNOWN && in IsPcmParametersSupported() 274 (pcm_capability.sampleRate & pcm_parameters.sampleRate && in IsPcmParametersSupported() 370 pcm_parameters.sampleRate = sample_rate; in TEST_F() 436 sbc_capability.sampleRate, 0xff, supported); in GetSbcCodecSpecificSupportedList() 462 sbc_data = {.sampleRate = sample_rate, in GetSbcCodecSpecificSupportedList() 495 aac_capability.sampleRate, 0xff, supported); in GetAacCodecSpecificSupportedList() 517 .sampleRate = sample_rate, in GetAacCodecSpecificSupportedList() 542 ldac_capability.sampleRate, 0xff, supported); in GetLdacCodecSpecificSupportedList() 560 ldac_data = {.sampleRate = sample_rate, in GetLdacCodecSpecificSupportedList() 586 aptx_capability.sampleRate, 0xff, supported); in GetAptxCodecSpecificSupportedList() [all …]
|
/hardware/libhardware/modules/audio_remote_submix/tests/ |
D | remote_submix_tests.cpp | 70 const char* address, bool mono, uint32_t sampleRate, audio_stream_in_t** streamIn); 72 const char* address, bool mono, uint32_t sampleRate, audio_stream_out_t** streamOut); 107 const char* address, bool mono, uint32_t sampleRate, audio_stream_in_t** streamIn) { in OpenInputStream() argument 111 configIn.sample_rate = sampleRate; in OpenInputStream() 120 const char* address, bool mono, uint32_t sampleRate, audio_stream_out_t** streamOut) { in OpenOutputStream() argument 124 configOut.sample_rate = sampleRate; in OpenOutputStream()
|
/hardware/interfaces/bluetooth/audio/2.0/ |
D | types.hal | 152 SampleRate sampleRate; 162 SampleRate sampleRate; 175 SampleRate sampleRate; 187 SampleRate sampleRate; 195 SampleRate sampleRate;
|
/hardware/qcom/msm8998/kernel-headers/linux/ |
D | msm_audio_ape.h | 35 uint32_t sampleRate; member
|
/hardware/qcom/msm8996/kernel-headers/linux/ |
D | msm_audio_ape.h | 35 uint32_t sampleRate; member
|
/hardware/qcom/msm8998/original-kernel-headers/linux/ |
D | msm_audio_ape.h | 21 uint32_t sampleRate; member
|
/hardware/qcom/msm8996/original-kernel-headers/linux/ |
D | msm_audio_ape.h | 21 uint32_t sampleRate; member
|