Home
last modified time | relevance | path

Searched refs:profileToAdd (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioProfile.h153 ssize_t addProfileFromHal(const sp<AudioProfile> &profileToAdd) in addProfileFromHal() argument
156 if (!profileToAdd->hasValidFormat()) { in addProfileFromHal()
159 if (!profileToAdd->hasValidChannels() && !profileToAdd->hasValidRates()) { in addProfileFromHal()
161 formats.add(profileToAdd->getFormat()); in addProfileFromHal()
165 if (!profileToAdd->hasValidChannels() && profileToAdd->hasValidRates()) { in addProfileFromHal()
166 setSampleRatesFor(profileToAdd->getSampleRates(), profileToAdd->getFormat()); in addProfileFromHal()
169 if (profileToAdd->hasValidChannels() && !profileToAdd->hasValidRates()) { in addProfileFromHal()
170 setChannelsFor(profileToAdd->getChannels(), profileToAdd->getFormat()); in addProfileFromHal()
176 if (profile->isValid() && profile == profileToAdd) { in addProfileFromHal()
181 profileToAdd->setDynamicFormat(true); // set the format as dynamic to allow removal in addProfileFromHal()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DConfigParsingUtils.cpp192 sp<AudioProfile> profileToAdd = new AudioProfile(gDynamicFormat, channels, sampleRates); in loadHwModuleProfile() local
193 profileToAdd->setDynamicFormat(true); in loadHwModuleProfile()
194 profileToAdd->setDynamicChannels(channels.isEmpty()); in loadHwModuleProfile()
195 profileToAdd->setDynamicRate(sampleRates.isEmpty()); in loadHwModuleProfile()
196 audioProfiles.add(profileToAdd); in loadHwModuleProfile()
201 sp<AudioProfile> profileToAdd = new AudioProfile(formats[i], channels, sampleRates); in loadHwModuleProfile() local
202 profileToAdd->setDynamicFormat(formats[i] == gDynamicFormat); in loadHwModuleProfile()
203 profileToAdd->setDynamicChannels(channels.isEmpty()); in loadHwModuleProfile()
204 profileToAdd->setDynamicRate(sampleRates.isEmpty()); in loadHwModuleProfile()
205 audioProfiles.add(profileToAdd); in loadHwModuleProfile()