Lines Matching refs:rate
158 bool profile_is_sample_rate_valid(const alsa_device_profile* profile, unsigned rate) in profile_is_sample_rate_valid() argument
163 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid()
171 return rate == DEFAULT_SAMPLE_RATE; in profile_is_sample_rate_valid()
233 static bool profile_test_sample_rate(const alsa_device_profile* profile, unsigned rate) in profile_test_sample_rate() argument
236 config.rate = rate; in profile_test_sample_rate()
372 config->rate = pcm_params_get_min(alsa_hw_params, PCM_PARAM_RATE); in read_alsa_device_config()
374 if (config->rate < 48000 && in read_alsa_device_config()
376 config->rate = 48000; in read_alsa_device_config()
377 } else if (config->rate < 44100 && in read_alsa_device_config()
379 config->rate = 44100; in read_alsa_device_config()
381 config->period_size = profile_calc_min_period_size(profile, config->rate); in read_alsa_device_config()
405 profile->default_config.channels, profile->default_config.rate, in profile_read_device_info()
650 dprintf(fd, " rate: %d\n", profile->default_config.rate); in profile_dump()