Lines Matching defs:stream
105 int stream;
114 if (get_user(stream, &info->stream))
116 if (stream < 0 || stream > 1)
118 stream = array_index_nospec(stream, 2);
127 pstr = &pcm->streams[stream];
274 static const char *snd_pcm_stream_name(int stream)
276 return snd_pcm_stream_names[stream];
353 snd_iprintf(buffer, "stream: %s\n", snd_pcm_stream_name(info->stream));
511 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c');
625 * snd_pcm_new_stream - create a new PCM stream
627 * @stream: the stream direction, SNDRV_PCM_STREAM_XXX
630 * Creates a new stream for the pcm.
631 * The corresponding stream on the pcm must have been empty before
637 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count)
640 struct snd_pcm_str *pstr = &pcm->streams[stream];
646 pstr->stream = stream;
656 stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c');
673 substream->stream = stream;
830 /* free all proc files under the stream */
884 int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,
897 if (snd_BUG_ON(stream != SNDRV_PCM_STREAM_PLAYBACK &&
898 stream != SNDRV_PCM_STREAM_CAPTURE))
901 pstr = &pcm->streams[stream];
909 int opposite = !stream;