Lines Matching refs:rate
197 unsigned int rate = combine_triple(&fmt[idx]); in parse_audio_format_rates_v1() local
198 if (!rate) in parse_audio_format_rates_v1()
203 if (rate == 48000 && nr_rates == 1 && in parse_audio_format_rates_v1()
209 rate = 96000; in parse_audio_format_rates_v1()
211 if (rate == 16000 && in parse_audio_format_rates_v1()
214 rate = 8000; in parse_audio_format_rates_v1()
216 fp->rate_table[fp->nr_rates] = rate; in parse_audio_format_rates_v1()
217 if (!fp->rate_min || rate < fp->rate_min) in parse_audio_format_rates_v1()
218 fp->rate_min = rate; in parse_audio_format_rates_v1()
219 if (!fp->rate_max || rate > fp->rate_max) in parse_audio_format_rates_v1()
220 fp->rate_max = rate; in parse_audio_format_rates_v1()
221 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_audio_format_rates_v1()
244 unsigned int rate) in focusrite_valid_sample_rate() argument
277 return rate <= max_rate; in focusrite_valid_sample_rate()
301 unsigned int rate; in parse_uac2_sample_rate_range() local
318 for (rate = min; rate <= max; rate += res) { in parse_uac2_sample_rate_range()
321 !focusrite_valid_sample_rate(chip, fp, rate)) in parse_uac2_sample_rate_range()
325 fp->rate_table[nr_rates] = rate; in parse_uac2_sample_rate_range()
326 if (!fp->rate_min || rate < fp->rate_min) in parse_uac2_sample_rate_range()
327 fp->rate_min = rate; in parse_uac2_sample_rate_range()
328 if (!fp->rate_max || rate > fp->rate_max) in parse_uac2_sample_rate_range()
329 fp->rate_max = rate; in parse_uac2_sample_rate_range()
330 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_uac2_sample_rate_range()