Lines Matching defs:fmt

30  * @fmt: the format type descriptor (v1/v2) or AudioStreaming descriptor (v3)
42 struct uac_format_type_i_discrete_descriptor *fmt = _fmt;
49 sample_width = fmt->bBitResolution;
50 sample_bytes = fmt->bSubframeSize;
56 struct uac_format_type_i_ext_descriptor *fmt = _fmt;
57 sample_width = fmt->bBitResolution;
58 sample_bytes = fmt->bSubslotSize;
180 * @fmt: the format descriptor
185 unsigned char *fmt, int offset)
187 int nr_rates = fmt[offset];
189 if (fmt[0] < offset + 1 + 3 * (nr_rates ? nr_rates : 2)) {
210 unsigned int rate = combine_triple(&fmt[idx]);
244 fp->rate_min = combine_triple(&fmt[offset + 1]);
245 fp->rate_max = combine_triple(&fmt[offset + 4]);
299 unsigned char *fmt;
307 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen,
309 if (!fmt)
312 if (fmt[0] == 10) { /* bLength */
313 max_rate = combine_quad(&fmt[6]);
543 struct uac_format_type_i_continuous_descriptor *fmt = _fmt;
545 fmt_type = fmt->bFormatType;
587 struct uac_format_type_i_continuous_descriptor *fmt = _fmt;
589 fp->channels = fmt->bNrChannels;
590 ret = parse_audio_format_rates_v1(chip, fp, (unsigned char *) fmt, 7);
642 struct uac_format_type_ii_discrete_descriptor *fmt = _fmt;
643 brate = le16_to_cpu(fmt->wMaxBitRate);
644 framesize = le16_to_cpu(fmt->wSamplesPerFrame);
647 ret = parse_audio_format_rates_v1(chip, fp, _fmt, 8); /* fmt[8..] sample rates */
651 struct uac_format_type_ii_ext_descriptor *fmt = _fmt;
652 brate = le16_to_cpu(fmt->wMaxBitRate);
653 framesize = le16_to_cpu(fmt->wSamplesPerFrame);
666 struct uac_format_type_i_continuous_descriptor *fmt,
671 switch (fmt->bFormatType) {
674 err = parse_audio_format_i(chip, fp, format, fmt);
677 err = parse_audio_format_ii(chip, fp, format, fmt);
683 fmt->bFormatType);
686 fp->fmt_type = fmt->bFormatType;
697 if (fmt->bFormatType == UAC_FORMAT_TYPE_I &&