Lines Matching defs:as

79 static void snd_usb_init_substream(struct snd_usb_stream *as,
84 struct snd_usb_substream *subs = &as->substream[stream];
89 subs->stream = as;
91 subs->dev = as->chip->dev;
92 subs->txfr_quirk = !!(as->chip->quirk_flags & QUIRK_FLAG_ALIGN_TRANSFER);
93 subs->tx_length_quirk = !!(as->chip->quirk_flags & QUIRK_FLAG_TX_LENGTH);
98 snd_usb_set_pcm_ops(as->pcm, stream);
494 struct snd_usb_stream *as;
499 list_for_each_entry(as, &chip->pcm_list, list) {
500 if (as->fmt_type != fp->fmt_type)
502 subs = &as->substream[stream];
515 list_for_each_entry(as, &chip->pcm_list, list) {
516 if (as->fmt_type != fp->fmt_type)
518 subs = &as->substream[stream];
521 err = snd_pcm_new_stream(as->pcm, stream, 1);
524 snd_usb_init_substream(as, stream, fp, pd);
525 return add_chmap(as->pcm, stream, subs);
529 as = kzalloc(sizeof(*as), GFP_KERNEL);
530 if (!as)
532 as->pcm_index = chip->pcm_devs;
533 as->chip = chip;
534 as->fmt_type = fp->fmt_type;
540 kfree(as);
543 as->pcm = pcm;
544 pcm->private_data = as;
553 snd_usb_init_substream(as, stream, fp, pd);
560 list_add(&as->list, &chip->pcm_list);
562 list_add_tail(&as->list, &chip->pcm_list);
566 snd_usb_proc_pcm_format_add(as);
568 return add_chmap(pcm, stream, &as->substream[stream]);
590 /* parsed with a v1 header here. that's ok as we only look at the
735 struct uac1_as_header_descriptor *as =
740 if (!as) {
747 if (as->bLength < sizeof(*as)) {
754 format = le16_to_cpu(as->wFormatTag); /* remember the format value */
757 as->bTerminalLink,
766 struct uac2_as_header_descriptor *as =
770 if (!as) {
777 if (as->bLength < sizeof(*as)) {
784 num_channels = as->bNrChannels;
785 format = le32_to_cpu(as->bmFormats);
786 chconfig = le32_to_cpu(as->bmChannelConfig);
793 as->bTerminalLink,
803 as->bTerminalLink,
812 iface_no, altno, as->bTerminalLink);
884 struct uac3_as_header_descriptor *as = NULL;
948 as = snd_usb_find_csint_desc(alts->extra, alts->extralen,
950 if (!as) {
957 if (as->bLength < sizeof(*as)) {
964 cluster_id = le16_to_cpu(as->wClusterDescrID);
1042 as->bTerminalLink,
1050 as->bTerminalLink,
1058 iface_no, altno, as->bTerminalLink);
1100 as->bTerminalLink);
1103 if (snd_usb_parse_audio_format_v3(chip, fp, as, stream) < 0) {