Home
last modified time | relevance | path

Searched refs:nr_rates (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/sound/usb/
Dformat.c153 int nr_rates = fmt[offset]; in parse_audio_format_rates_v1() local
155 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) { in parse_audio_format_rates_v1()
161 if (nr_rates) { in parse_audio_format_rates_v1()
167 fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL); in parse_audio_format_rates_v1()
173 fp->nr_rates = 0; in parse_audio_format_rates_v1()
175 for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) { in parse_audio_format_rates_v1()
181 if (rate == 48000 && nr_rates == 1 && in parse_audio_format_rates_v1()
191 fp->rate_table[fp->nr_rates] = rate; in parse_audio_format_rates_v1()
197 fp->nr_rates++; in parse_audio_format_rates_v1()
199 if (!fp->nr_rates) { in parse_audio_format_rates_v1()
[all …]
Dcard.h27 unsigned int nr_rates; /* number of rate table entries */ member
Dquirks.c139 if (fp->nr_rates > MAX_NR_RATES) { in create_fixed_stream_quirk()
143 if (fp->nr_rates > 0) { in create_fixed_stream_quirk()
145 sizeof(int) * fp->nr_rates, GFP_KERNEL); in create_fixed_stream_quirk()
Dpcm.c101 for (i = 0; i < fp->nr_rates; i++) in find_format()
104 if (i >= fp->nr_rates) in find_format()
725 count += fp->nr_rates; in snd_usb_pcm_check_knot()
741 for (i = 0; i < fp->nr_rates; i++) in snd_usb_pcm_check_knot()
Dproc.c103 for (i = 0; i < fp->nr_rates; i++) { in proc_dump_substream_formats()
Dquirks-table.h2175 .nr_rates = 4,
2199 .nr_rates = 4,
2242 .nr_rates = 4,
2266 .nr_rates = 4,
2750 .nr_rates = 2,