Home
last modified time | relevance | path

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

/sound/usb/
Dformat.c163 int nr_rates = fmt[offset]; in parse_audio_format_rates_v1() local
165 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) { in parse_audio_format_rates_v1()
172 if (nr_rates) { in parse_audio_format_rates_v1()
178 fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL); in parse_audio_format_rates_v1()
182 fp->nr_rates = 0; in parse_audio_format_rates_v1()
184 for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) { in parse_audio_format_rates_v1()
190 if (rate == 48000 && nr_rates == 1 && in parse_audio_format_rates_v1()
202 fp->rate_table[fp->nr_rates] = rate; in parse_audio_format_rates_v1()
208 fp->nr_rates++; in parse_audio_format_rates_v1()
210 if (!fp->nr_rates) { in parse_audio_format_rates_v1()
[all …]
Dquirks-table.h1639 .nr_rates = 1,
1657 .nr_rates = 1,
1706 .nr_rates = 1,
1724 .nr_rates = 1,
2123 .nr_rates = 4,
2149 .nr_rates = 4,
2194 .nr_rates = 4,
2220 .nr_rates = 4,
2264 .nr_rates = 4,
2288 .nr_rates = 4,
[all …]
Dcard.h29 unsigned int nr_rates; /* number of rate table entries */ member
Dproc.c103 for (i = 0; i < fp->nr_rates; i++) { in proc_dump_substream_formats()
Dpcm.c112 for (i = 0; i < fp->nr_rates; i++) in find_format()
115 if (i >= fp->nr_rates) in find_format()
612 for (i = 0; i < fp->nr_rates; i++) { in match_endpoint_audioformats()
1126 count += fp->nr_rates; in snd_usb_pcm_check_knot()
1142 for (i = 0; i < fp->nr_rates; i++) in snd_usb_pcm_check_knot()
Dquirks.c153 if (fp->nr_rates > MAX_NR_RATES) { in create_fixed_stream_quirk()
157 if (fp->nr_rates > 0) { in create_fixed_stream_quirk()
159 sizeof(int) * fp->nr_rates, GFP_KERNEL); in create_fixed_stream_quirk()