Lines Matching refs:stream

27 #include "stream.h"
56 * free a usb stream instance
58 static void snd_usb_audio_stream_free(struct snd_usb_stream *stream)
60 free_substream(&stream->substream[0]);
61 free_substream(&stream->substream[1]);
62 list_del(&stream->list);
63 kfree(stream);
68 struct snd_usb_stream *stream = pcm->private_data;
69 if (stream) {
70 stream->pcm = NULL;
71 snd_usb_audio_stream_free(stream);
80 int stream,
84 struct snd_usb_substream *subs = &as->substream[stream];
89 subs->stream = as;
90 subs->direction = stream;
98 snd_usb_set_pcm_ops(as->pcm, stream);
111 snd_usb_power_domain_set(subs->stream->chip, pd,
209 static int add_chmap(struct snd_pcm *pcm, int stream,
224 err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap);
474 * if a stream with the same endpoint already exists, append to it.
475 * if not, create a new pcm stream. note, fp is added to the substream
480 int stream,
493 subs = &as->substream[stream];
505 /* look for an empty stream */
509 subs = &as->substream[stream];
512 err = snd_pcm_new_stream(as->pcm, stream, 1);
515 snd_usb_init_substream(as, stream, fp, pd);
516 return add_chmap(as->pcm, stream, subs);
527 stream == SNDRV_PCM_STREAM_PLAYBACK ? 1 : 0,
528 stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1,
543 snd_usb_init_substream(as, stream, fp, pd);
547 * fix to swap capture stream order in conf/cards/USB-audio.conf
558 return add_chmap(pcm, stream, &as->substream[stream]);
562 int stream,
565 return __snd_usb_add_audio_stream(chip, stream, fp, NULL);
569 int stream,
573 return __snd_usb_add_audio_stream(chip, stream, fp, pd);
711 int altno, int stream, int bm_quirk)
842 snd_usb_audioformat_attributes_quirk(chip, fp, stream);
846 fmt, stream) < 0) {
865 int altno, int stream)
1061 pd->pd_id = (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
1075 if (snd_usb_parse_audio_format_v3(chip, fp, as, stream) < 0) {
1096 int i, altno, err, stream;
1133 stream = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN) ?
1177 stream, bm_quirk);
1182 iface_no, i, altno, stream);
1205 err = snd_usb_add_audio_stream_v3(chip, stream, fp, pd);
1207 err = snd_usb_add_audio_stream(chip, stream, fp);