• Home
  • Raw
  • Download

Lines Matching refs:as

82 static void snd_usb_init_substream(struct snd_usb_stream *as,  in snd_usb_init_substream()  argument
86 struct snd_usb_substream *subs = &as->substream[stream]; in snd_usb_init_substream()
91 subs->stream = as; in snd_usb_init_substream()
93 subs->dev = as->chip->dev; in snd_usb_init_substream()
94 subs->txfr_quirk = as->chip->txfr_quirk; in snd_usb_init_substream()
95 subs->tx_length_quirk = as->chip->tx_length_quirk; in snd_usb_init_substream()
99 snd_usb_set_pcm_ops(as->pcm, stream); in snd_usb_init_substream()
325 struct snd_usb_stream *as; in snd_usb_add_audio_stream() local
330 list_for_each_entry(as, &chip->pcm_list, list) { in snd_usb_add_audio_stream()
331 if (as->fmt_type != fp->fmt_type) in snd_usb_add_audio_stream()
333 subs = &as->substream[stream]; in snd_usb_add_audio_stream()
342 list_for_each_entry(as, &chip->pcm_list, list) { in snd_usb_add_audio_stream()
343 if (as->fmt_type != fp->fmt_type) in snd_usb_add_audio_stream()
345 subs = &as->substream[stream]; in snd_usb_add_audio_stream()
348 err = snd_pcm_new_stream(as->pcm, stream, 1); in snd_usb_add_audio_stream()
351 snd_usb_init_substream(as, stream, fp); in snd_usb_add_audio_stream()
352 return add_chmap(as->pcm, stream, subs); in snd_usb_add_audio_stream()
356 as = kzalloc(sizeof(*as), GFP_KERNEL); in snd_usb_add_audio_stream()
357 if (!as) in snd_usb_add_audio_stream()
359 as->pcm_index = chip->pcm_devs; in snd_usb_add_audio_stream()
360 as->chip = chip; in snd_usb_add_audio_stream()
361 as->fmt_type = fp->fmt_type; in snd_usb_add_audio_stream()
367 kfree(as); in snd_usb_add_audio_stream()
370 as->pcm = pcm; in snd_usb_add_audio_stream()
371 pcm->private_data = as; in snd_usb_add_audio_stream()
379 snd_usb_init_substream(as, stream, fp); in snd_usb_add_audio_stream()
386 list_add(&as->list, &chip->pcm_list); in snd_usb_add_audio_stream()
388 list_add_tail(&as->list, &chip->pcm_list); in snd_usb_add_audio_stream()
392 snd_usb_proc_pcm_format_add(as); in snd_usb_add_audio_stream()
394 return add_chmap(pcm, stream, &as->substream[stream]); in snd_usb_add_audio_stream()
550 struct uac1_as_header_descriptor *as = in snd_usb_parse_audio_interface() local
554 if (!as) { in snd_usb_parse_audio_interface()
561 if (as->bLength < sizeof(*as)) { in snd_usb_parse_audio_interface()
568 format = le16_to_cpu(as->wFormatTag); /* remember the format value */ in snd_usb_parse_audio_interface()
571 as->bTerminalLink); in snd_usb_parse_audio_interface()
583 struct uac2_as_header_descriptor *as = in snd_usb_parse_audio_interface() local
586 if (!as) { in snd_usb_parse_audio_interface()
593 if (as->bLength < sizeof(*as)) { in snd_usb_parse_audio_interface()
600 num_channels = as->bNrChannels; in snd_usb_parse_audio_interface()
601 format = le32_to_cpu(as->bmFormats); in snd_usb_parse_audio_interface()
602 chconfig = le32_to_cpu(as->bmChannelConfig); in snd_usb_parse_audio_interface()
607 as->bTerminalLink); in snd_usb_parse_audio_interface()
616 as->bTerminalLink); in snd_usb_parse_audio_interface()
624 iface_no, altno, as->bTerminalLink); in snd_usb_parse_audio_interface()