Lines Matching refs:nr_rates
166 fp->nr_rates = 1;
187 int nr_rates = fmt[offset];
189 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) {
196 if (nr_rates) {
202 fp->rate_table = kmalloc_array(nr_rates, sizeof(int),
207 fp->nr_rates = 0;
209 for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) {
216 if (rate == 48000 && nr_rates == 1 &&
229 fp->rate_table[fp->nr_rates] = rate;
235 fp->nr_rates++;
237 if (!fp->nr_rates) {
251 if (fp->nr_rates != 1)
344 int i, nr_rates = 0;
382 fp->rate_table[nr_rates] = rate;
389 nr_rates++;
390 if (nr_rates >= MAX_NR_RATES) {
402 return nr_rates;
504 fp->nr_rates = parse_uac2_sample_rate_range(chip, fp, nr_triplets, data);
506 if (fp->nr_rates == 0) {
512 fp->rate_table = kmalloc_array(fp->nr_rates, sizeof(int), GFP_KERNEL);