Lines Matching refs:stream
170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open()
194 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_close() local
197 if (stream != NULL) { in snd_vortex_pcm_close()
198 stream->substream = NULL; in snd_vortex_pcm_close()
199 stream->nr_ch = 0; in snd_vortex_pcm_close()
211 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_params() local
222 if (stream != NULL) in snd_vortex_pcm_hw_params()
223 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
224 stream->nr_ch, stream->dir, in snd_vortex_pcm_hw_params()
225 stream->type, in snd_vortex_pcm_hw_params()
231 substream->stream, type, in snd_vortex_pcm_hw_params()
237 stream = substream->runtime->private_data = &chip->dma_adb[dma]; in snd_vortex_pcm_hw_params()
238 stream->substream = substream; in snd_vortex_pcm_hw_params()
255 stream = substream->runtime->private_data = in snd_vortex_pcm_hw_params()
257 stream->dma = substream->number; in snd_vortex_pcm_hw_params()
258 stream->substream = substream; in snd_vortex_pcm_hw_params()
272 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_free() local
277 if (stream != NULL) { in snd_vortex_pcm_hw_free()
284 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_free()
285 stream->nr_ch, stream->dir, in snd_vortex_pcm_hw_free()
286 stream->type, in snd_vortex_pcm_hw_free()
292 if (stream != NULL) in snd_vortex_pcm_hw_free()
293 vortex_wt_allocroute(chip, stream->dma, 0); in snd_vortex_pcm_hw_free()
307 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_prepare() local
308 int dma = stream->dma, fmt, dir; in snd_vortex_pcm_prepare()
311 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_vortex_pcm_prepare()
339 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_trigger() local
340 int dma = stream->dma; in snd_vortex_pcm_trigger()
347 stream->fifo_enabled = 1; in snd_vortex_pcm_trigger()
362 stream->fifo_enabled = 0; in snd_vortex_pcm_trigger()
402 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_pointer() local
403 int dma = stream->dma; in snd_vortex_pcm_pointer()