Lines Matching full:rate
52 The order here determines the default sample rate for the device.
56 TODO: remove 32000, 22050, 12000, 11025? Each sample rate check
108 * Returns the system defined minimum period size based on the supplied sample rate.
112 ALOGV("profile_calc_min_period_size(%p, rate:%d)", profile, sample_rate);
129 ALOGV("profile_get_period_size(rate:%d) = %d", sample_rate, period_size);
134 * Sample Rate
139 * TODO this won't be right in general. we should store a preferred rate as we are scanning.
140 * But right now it will return the highest rate, which may be correct.
145 bool profile_is_sample_rate_valid(alsa_device_profile* profile, unsigned rate)
150 if (profile->sample_rates[index] == rate) {
157 return rate == DEFAULT_SAMPLE_RATE;
204 static bool profile_test_sample_rate(alsa_device_profile* profile, unsigned rate)
207 config.rate = rate;
343 config->rate = pcm_params_get_min(alsa_hw_params, PCM_PARAM_RATE);
345 if (config->rate < 48000 &&
347 config->rate = 48000;
348 } else if (config->rate < 441000 &&
350 config->rate = 44100;
352 config->period_size = profile_calc_min_period_size(profile, config->rate);
375 ALOGV("default_config chans:%d rate:%d format:%d count:%d size:%d",
376 profile->default_config.channels, profile->default_config.rate,
408 /* if we assume that rate strings are about 5 characters (48000 is 5), plus ~1 for a
409 * delimiter "|" this buffer has room for about 22 rate strings which seems like
426 * return a malformed rate string
457 * return a malformed rate string
545 * return a malformed rate string
558 * return a malformed rate string