Searched refs:profileToAdd (Results 1 – 2 of 2) sorted by relevance
153 ssize_t addProfileFromHal(const sp<AudioProfile> &profileToAdd) in addProfileFromHal() argument156 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 …]
192 sp<AudioProfile> profileToAdd = new AudioProfile(gDynamicFormat, channels, sampleRates); in loadHwModuleProfile() local193 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() local202 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()