Lines Matching refs: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];
276 static const char *snd_pcm_stream_name(int stream)
278 return snd_pcm_stream_names[stream];
355 snd_iprintf(buffer, "stream: %s\n", snd_pcm_stream_name(info->stream));
513 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c');
627 * snd_pcm_new_stream - create a new PCM stream
629 * @stream: the stream direction, SNDRV_PCM_STREAM_XXX
632 * Creates a new stream for the pcm.
633 * The corresponding stream on the pcm must have been empty before
639 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count)
642 struct snd_pcm_str *pstr = &pcm->streams[stream];
648 pstr->stream = stream;
658 stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c');
678 substream->stream = stream;
833 /* free all proc files under the stream */
887 int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,
900 if (snd_BUG_ON(stream != SNDRV_PCM_STREAM_PLAYBACK &&
901 stream != SNDRV_PCM_STREAM_CAPTURE))
904 pstr = &pcm->streams[stream];
912 int opposite = !stream;