Lines Matching refs:profile
189 std::vector<AudioChannelLayout> getChannelMasksFromProfile(const alsa_device_profile* profile) { in getChannelMasksFromProfile() argument
190 const bool isInput = profile->direction == PCM_IN; in getChannelMasksFromProfile()
192 for (size_t i = 0; i < AUDIO_PORT_MAX_CHANNEL_MASKS && profile->channel_counts[i] != 0; ++i) { in getChannelMasksFromProfile()
194 alsa::getChannelLayoutMaskFromChannelCount(profile->channel_counts[i], isInput); in getChannelMasksFromProfile()
198 auto indexMask = alsa::getChannelIndexMaskFromChannelCount(profile->channel_counts[i]); in getChannelMasksFromProfile()
254 std::vector<int> getSampleRatesFromProfile(const alsa_device_profile* profile) { in getSampleRatesFromProfile() argument
257 profile->sample_rates[i] != 0; in getSampleRatesFromProfile()
259 sampleRates.push_back(profile->sample_rates[i]); in getSampleRatesFromProfile()
280 alsa_device_profile profile; in openProxyForAttachedDevice() local
281 profile_init(&profile, deviceProfile.direction); in openProxyForAttachedDevice()
282 profile.card = deviceProfile.card; in openProxyForAttachedDevice()
283 profile.device = deviceProfile.device; in openProxyForAttachedDevice()
284 if (!profile_fill_builtin_device_info(&profile, pcmConfig, bufferFrameCount)) { in openProxyForAttachedDevice()
288 if (int err = proxy_prepare_from_default_config(proxy.get(), &profile); err != 0) { in openProxyForAttachedDevice()
306 auto profile = readAlsaDeviceInfo(deviceProfile); in openProxyForExternalDevice() local
307 if (!profile.has_value()) { in openProxyForExternalDevice()
312 if (int err = proxy_prepare(proxy.get(), &profile.value(), pcmConfig, requireExactMatch); in openProxyForExternalDevice()
327 alsa_device_profile profile; in readAlsaDeviceInfo() local
328 profile_init(&profile, deviceProfile.direction); in readAlsaDeviceInfo()
329 profile.card = deviceProfile.card; in readAlsaDeviceInfo()
330 profile.device = deviceProfile.device; in readAlsaDeviceInfo()
331 if (!profile_read_device_info(&profile)) { in readAlsaDeviceInfo()
332 LOG(ERROR) << __func__ << ": failed to read device info, card=" << profile.card in readAlsaDeviceInfo()
333 << ", device=" << profile.device; in readAlsaDeviceInfo()
336 return profile; in readAlsaDeviceInfo()