Searched refs:sample_rates (Results 1 – 5 of 5) sorted by relevance
113 int max_rate_index = proxy_scan_rates(proxy, profile->sample_rates); in proxy_prepare()115 if (proxy->alsa_config.rate > profile->sample_rates[max_rate_index]) { in proxy_prepare()117 proxy->alsa_config.rate, profile->sample_rates[max_rate_index]); in proxy_prepare()118 proxy->alsa_config.rate = profile->sample_rates[max_rate_index]; in proxy_prepare()263 int proxy_scan_rates(alsa_device_proxy * proxy, unsigned sample_rates[]) { in proxy_scan_rates() argument274 while (sample_rates[rate_index] != 0) { in proxy_scan_rates()275 alsa_config.rate = sample_rates[rate_index]; in proxy_scan_rates()
67 profile->sample_rates[0] = 0; in profile_reset()142 return profile_is_valid(profile) ? profile->sample_rates[0] : DEFAULT_SAMPLE_RATE; in profile_get_default_sample_rate()149 for (index = 0; profile->sample_rates[index] != 0; index++) { in profile_is_sample_rate_valid()150 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid()242 num_entries < ARRAY_SIZE(profile->sample_rates) - 1; in profile_enum_sample_rates()246 profile->sample_rates[num_entries++] = std_sample_rates[index]; in profile_enum_sample_rates()249 profile->sample_rates[num_entries] = 0; /* terminate */ in profile_enum_sample_rates()436 for (index = 0; profile->sample_rates[index] != 0; index++) { in profile_get_sample_rate_strs()437 snprintf(numBuffer, sizeof(numBuffer), "%u", profile->sample_rates[index]); in profile_get_sample_rate_strs()612 profile->sample_rates[rateIndex] != 0 && rateIndex < MAX_PROFILE_SAMPLE_RATES; in profile_dump()[all …]
57 int proxy_scan_rates(alsa_device_proxy * proxy, unsigned sample_rates[]);
46 unsigned sample_rates[MAX_PROFILE_SAMPLE_RATES]; member
461 unsigned int sample_rates[AUDIO_PORT_MAX_SAMPLING_RATES]; member