Lines Matching refs:nr_rates

161 	fp->nr_rates = 1;  in set_fixed_rate()
178 for (i = 0; i < fp->nr_rates; i++) { in set_rate_table_min_max()
199 int nr_rates = fmt[offset]; in parse_audio_format_rates_v1() local
201 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) { in parse_audio_format_rates_v1()
208 if (nr_rates) { in parse_audio_format_rates_v1()
214 fp->rate_table = kmalloc_array(nr_rates, sizeof(int), in parse_audio_format_rates_v1()
219 fp->nr_rates = 0; in parse_audio_format_rates_v1()
220 for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) { in parse_audio_format_rates_v1()
227 if (rate == 48000 && nr_rates == 1 && in parse_audio_format_rates_v1()
240 fp->rate_table[fp->nr_rates++] = rate; in parse_audio_format_rates_v1()
242 if (!fp->nr_rates) { in parse_audio_format_rates_v1()
259 if (fp->nr_rates != 1) in parse_audio_format_rates_v1()
352 int i, nr_rates = 0; in parse_uac2_sample_rate_range() local
388 fp->rate_table[nr_rates] = rate; in parse_uac2_sample_rate_range()
389 nr_rates++; in parse_uac2_sample_rate_range()
390 if (nr_rates >= MAX_NR_RATES) { in parse_uac2_sample_rate_range()
402 return nr_rates; in parse_uac2_sample_rate_range()
469 unsigned int nr_rates; in validate_sample_rate_table_v2v3() local
479 table = kcalloc(fp->nr_rates, sizeof(*table), GFP_KERNEL); in validate_sample_rate_table_v2v3()
486 nr_rates = 0; in validate_sample_rate_table_v2v3()
487 for (i = 0; i < fp->nr_rates; i++) { in validate_sample_rate_table_v2v3()
494 table[nr_rates++] = fp->rate_table[i]; in validate_sample_rate_table_v2v3()
497 if (!nr_rates) { in validate_sample_rate_table_v2v3()
501 nr_rates = fp->nr_rates; /* continue as is */ in validate_sample_rate_table_v2v3()
504 if (fp->nr_rates == nr_rates) { in validate_sample_rate_table_v2v3()
511 fp->nr_rates = nr_rates; in validate_sample_rate_table_v2v3()
589 fp->nr_rates = parse_uac2_sample_rate_range(chip, fp, nr_triplets, data); in parse_audio_format_rates_v2v3()
591 if (fp->nr_rates == 0) { in parse_audio_format_rates_v2v3()
597 fp->rate_table = kmalloc_array(fp->nr_rates, sizeof(int), GFP_KERNEL); in parse_audio_format_rates_v2v3()