Home
last modified time | relevance | path

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

/sound/usb/
Dformat.c165 fp->nr_rates = 1; in set_fixed_rate()
182 for (i = 0; i < fp->nr_rates; i++) { in set_rate_table_min_max()
203 int nr_rates = fmt[offset]; in parse_audio_format_rates_v1() local
205 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) { in parse_audio_format_rates_v1()
212 if (nr_rates) { in parse_audio_format_rates_v1()
218 fp->rate_table = kmalloc_array(nr_rates, sizeof(int), in parse_audio_format_rates_v1()
223 fp->nr_rates = 0; in parse_audio_format_rates_v1()
224 for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) { in parse_audio_format_rates_v1()
231 if (rate == 48000 && nr_rates == 1 && in parse_audio_format_rates_v1()
244 fp->rate_table[fp->nr_rates++] = rate; in parse_audio_format_rates_v1()
[all …]
Dquirks-table.h113 .nr_rates = 1,
1580 .nr_rates = 1,
1598 .nr_rates = 1,
1647 .nr_rates = 1,
1665 .nr_rates = 1,
2089 .nr_rates = 4,
2115 .nr_rates = 4,
2160 .nr_rates = 4,
2186 .nr_rates = 4,
2230 .nr_rates = 4,
[all …]
Dcard.h38 unsigned int nr_rates; /* number of rate table entries */ member
Dimplicit.c420 for (i = 0; i < fp->nr_rates; i++) { in match_endpoint_audioformats()
424 if (i >= fp->nr_rates) in match_endpoint_audioformats()
Dproc.c122 for (i = 0; i < fp->nr_rates; i++) { in proc_dump_substream_formats()
Dpcm.c113 for (i = 0; i < fp->nr_rates; i++) in find_format()
116 if (i >= fp->nr_rates) in find_format()
802 if (fp->rate_table && fp->nr_rates) { in hw_rule_rate()
803 for (i = 0; i < fp->nr_rates; i++) { in hw_rule_rate()
Dquirks.c164 if (fp->nr_rates > MAX_NR_RATES) { in create_fixed_stream_quirk()
168 if (fp->nr_rates > 0) { in create_fixed_stream_quirk()
170 sizeof(int) * fp->nr_rates, GFP_KERNEL); in create_fixed_stream_quirk()
Dclock.c171 if (fmt->nr_rates == 1 && in uac_clock_source_is_valid_quirk()
Dstream.c1048 fp->nr_rates = 0; /* SNDRV_PCM_RATE_CONTINUOUS */ in snd_usb_get_audioformat_uac3()