Home
last modified time | relevance | path

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

12

/hardware/interfaces/audio/core/all-versions/vts/functional/
DConfigHelper.h85 std::vector<audio_channel_mask_t> channelMasks, std::vector<uint32_t> sampleRates, in combineAudioConfig()
88 configs.reserve(channelMasks.size() * sampleRates.size()); in combineAudioConfig()
90 for (auto sampleRate : sampleRates) { in combineAudioConfig()
103 std::vector<uint32_t> sampleRates, in combineAudioConfig()
106 configs.reserve(channelMasks.size() * sampleRates.size() * formats.size()); in combineAudioConfig()
108 for (auto sampleRate : sampleRates) { in combineAudioConfig()
DAudioPrimaryHidlHalTest.h1423 &GetSupported::sampleRates, &IStream::getSampleRate,
1463 for (const auto& sampleRate : profile.sampleRates) {
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/
DGenerators.cpp51 const auto& sampleRates = profile->getSampleRates(); in generateOutputDeviceConfigParameters() local
54 std::vector<uint32_t>(sampleRates.begin(), sampleRates.end()), in generateOutputDeviceConfigParameters()
114 const auto& sampleRates = profile->getSampleRates(); in generateInputDeviceConfigParameters() local
117 std::vector<uint32_t>(sampleRates.begin(), sampleRates.end()), in generateInputDeviceConfigParameters()
/hardware/interfaces/audio/aidl/default/alsa/
DModuleAlsa.cpp49 std::vector<int> sampleRates = alsa::getSampleRatesFromProfile(profile); in populateConnectedDevicePort() local
62 .sampleRates = sampleRates}; in populateConnectedDevicePort()
DUtils.cpp272 std::vector<int> sampleRates; in getSampleRatesFromProfile() local
276 sampleRates.push_back(profile->sample_rates[i]); in getSampleRatesFromProfile()
278 return sampleRates; in getSampleRatesFromProfile()
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp113 hidl_vec<uint32_t> sampleRates; in getSupportedSampleRates() local
118 sampleRates = hidl_vec<uint32_t>(halSampleRates.begin(), halSampleRates.end()); in getSupportedSampleRates()
121 if (sampleRates.size() == 0) { in getSupportedSampleRates()
126 _hidl_cb(sampleRates); in getSupportedSampleRates()
128 _hidl_cb(result, sampleRates); in getSupportedSampleRates()
245 hidl_vec<uint32_t> sampleRates; in getSupportedProfiles() local
246 sampleRates.resize(halSampleRates.size()); in getSupportedProfiles()
247 for (size_t i = 0; i < sampleRates.size(); ++i) { in getSupportedProfiles()
248 sampleRates[i] = std::stoi(halSampleRates[i]); in getSupportedProfiles()
258 if (channelMasks.size() != 0 && sampleRates.size() != 0) { in getSupportedProfiles()
[all …]
/hardware/interfaces/audio/aidl/default/
DConfiguration.cpp50 const std::vector<int32_t>& sampleRates) { in fillProfile() argument
55 profile->sampleRates.insert(profile->sampleRates.end(), sampleRates.begin(), sampleRates.end()); in fillProfile()
59 const std::vector<int32_t>& sampleRates) { in createProfile() argument
63 fillProfile(&profile, channelLayouts, sampleRates); in createProfile()
69 const std::vector<int32_t>& sampleRates) { in createProfile() argument
72 fillProfile(&profile, channelLayouts, sampleRates); in createProfile()
149 .sampleRates = {8000, 11025, 16000, 32000, 44100, 48000}}; in getStandard16And24BitPcmAudioProfiles()
DModule.cpp80 inline bool hasDynamicSampleRates(const std::vector<int32_t>& sampleRates) { in hasDynamicSampleRates() argument
81 return sampleRates.empty() || in hasDynamicSampleRates()
82 std::all_of(sampleRates.begin(), sampleRates.end(), in hasDynamicSampleRates()
88 hasDynamicSampleRates(profile.sampleRates); in isDynamicProfile()
320 config->sampleRate = Int{.value = *profile.sampleRates.begin()}; in generateDefaultPortConfig()
1025 std::map<int32_t, AudioPortConfig*> sampleRates; in setAudioPatch() local
1029 sampleRates.emplace(mix->sampleRate.value().value, mix); in setAudioPatch()
1032 auto maxSampleRateIt = std::max_element(sampleRates.begin(), sampleRates.end()); in setAudioPatch()
1179 find(portProfile.sampleRates.begin(), portProfile.sampleRates.end(), in setAudioPortConfigImpl()
1180 sampleRate.value) != portProfile.sampleRates.end()) { in setAudioPortConfigImpl()
DXsdcConversion.cpp198 .sampleRates = xProfile.hasSamplingRates() in convertAudioProfileToAidl()
/hardware/interfaces/automotive/audiocontrol/aidl/default/
DAudioControl.cpp95 const std::vector<int32_t>& sampleRates, AudioProfile* profile) { in fillProfile() argument
100 profile->sampleRates.insert(profile->sampleRates.end(), sampleRates.begin(), sampleRates.end()); in fillProfile()
104 const std::vector<int32_t>& sampleRates) { in createProfile() argument
108 fillProfile(channelLayouts, sampleRates, &profile); in createProfile()
114 const std::vector<int32_t>& sampleRates) { in createProfile() argument
117 fillProfile(channelLayouts, sampleRates, &profile); in createProfile()
DAudioControl.h97 binder_status_t parseSampleRates(int fd, const std::string& sampleRates,
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DGenerators.cpp42 std::vector<int64_t> sampleRates, in combineAudioConfig() argument
45 configs.reserve(channelMasks.size() * sampleRates.size()); in combineAudioConfig()
47 for (auto sampleRate : sampleRates) { in combineAudioConfig()
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp263 port->sampleRates.resize(halPort.num_sample_rates); in audioPortFromHal()
265 port->sampleRates[i] = halPort.sample_rates[i]; in audioPortFromHal()
312 std::min(port.sampleRates.size(), static_cast<size_t>(AUDIO_PORT_MAX_SAMPLING_RATES)); in audioPortToHal()
314 halPort->sample_rates[i] = port.sampleRates[i]; in audioPortToHal()
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalUtils.h56 static Result sampleRates(IStream* stream, hidl_vec<uint32_t>& rates) { in sampleRates() function
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp911 profile.sampleRates.resize(2); in TEST()
912 profile.sampleRates[0] = 44100; in TEST()
913 profile.sampleRates[1] = 48000; in TEST()
960 profile.sampleRates.resize(2); in generateValidAudioProfile()
961 profile.sampleRates[0] = 44100; in generateValidAudioProfile()
962 profile.sampleRates[1] = 48000; in generateValidAudioProfile()
1050 profile.sampleRates.resize(2); in TEST()
1051 profile.sampleRates[0] = 44100; in TEST()
1052 profile.sampleRates[1] = 48000; in TEST()
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalUtils.h69 static Result sampleRates(IStream* stream, hidl_vec<uint32_t>& rates) { in sampleRates() function
/hardware/interfaces/audio/aidl/default/r_submix/
DModuleRemoteSubmix.cpp117 .sampleRates = std::vector<int>({pipeConfig->sampleRate})}); in populateConnectedDevicePort()
/hardware/interfaces/audio/aidl/vts/
DModuleConfig.cpp456 const size_t newConfigCount = profile.channelMasks.size() * profile.sampleRates.size(); in combineAudioConfigs()
459 for (auto sampleRate : profile.sampleRates) { in combineAudioConfigs()
477 profile.sampleRates.empty() || profile.channelMasks.empty(); in isDynamicProfile()
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp949 profile->sampleRates.resize(halProfile.num_sample_rates); in audioUsageFromHal()
951 profile->sampleRates[i] = halProfile.sample_rates[i]; in audioUsageFromHal()
967 halProfile->num_sample_rates = profile.sampleRates.size(); in audioUsageFromHal()
974 halProfile->sample_rates[i] = profile.sampleRates[i]; in audioUsageFromHal()
/hardware/interfaces/audio/aidl/default/bluetooth/
DModuleBluetooth.cpp248 .sampleRates = std::vector<int>({pcmConfig.sampleRateHz})}); in populateConnectedDevicePort()
/hardware/interfaces/audio/2.0/
DIStream.hal62 getSupportedSampleRates() generates (vec<uint32_t> sampleRates);
/hardware/interfaces/audio/4.0/
DIStream.hal72 generates (Result retval, vec<uint32_t> sampleRates);
/hardware/interfaces/audio/5.0/
DIStream.hal72 generates (Result retval, vec<uint32_t> sampleRates);
/hardware/interfaces/audio/6.0/
DIStream.hal72 generates (Result retval, vec<uint32_t> sampleRates);
/hardware/interfaces/audio/common/7.0/
Dtypes.hal161 vec<uint32_t> sampleRates;

12