Lines Matching refs:nr_rates
147 int nr_rates = fmt[offset];
149 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) {
155 if (nr_rates) {
161 fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL);
167 fp->nr_rates = 0;
169 for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) {
174 if (rate == 48000 && nr_rates == 1 &&
183 fp->rate_table[fp->nr_rates] = rate;
189 fp->nr_rates++;
191 if (!fp->nr_rates) {
213 int i, nr_rates = 0;
240 fp->rate_table[nr_rates] = rate;
247 nr_rates++;
255 return nr_rates;
316 fp->nr_rates = parse_uac2_sample_rate_range(fp, nr_triplets, data);
318 if (fp->nr_rates == 0) {
324 fp->rate_table = kmalloc(sizeof(int) * fp->nr_rates, GFP_KERNEL);