Lines Matching refs:stream
182 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open()
206 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_close() local
209 if (stream != NULL) { in snd_vortex_pcm_close()
210 stream->substream = NULL; in snd_vortex_pcm_close()
211 stream->nr_ch = 0; in snd_vortex_pcm_close()
223 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_params() local
242 if (stream != NULL) in snd_vortex_pcm_hw_params()
243 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
244 stream->nr_ch, stream->dir, in snd_vortex_pcm_hw_params()
245 stream->type, in snd_vortex_pcm_hw_params()
251 substream->stream, type, in snd_vortex_pcm_hw_params()
257 stream = substream->runtime->private_data = &chip->dma_adb[dma]; in snd_vortex_pcm_hw_params()
258 stream->substream = substream; in snd_vortex_pcm_hw_params()
275 stream = substream->runtime->private_data = in snd_vortex_pcm_hw_params()
277 stream->dma = substream->number; in snd_vortex_pcm_hw_params()
278 stream->substream = substream; in snd_vortex_pcm_hw_params()
292 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_free() local
297 if (stream != NULL) { in snd_vortex_pcm_hw_free()
304 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_free()
305 stream->nr_ch, stream->dir, in snd_vortex_pcm_hw_free()
306 stream->type, in snd_vortex_pcm_hw_free()
312 if (stream != NULL) in snd_vortex_pcm_hw_free()
313 vortex_wt_allocroute(chip, stream->dma, 0); in snd_vortex_pcm_hw_free()
327 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_prepare() local
328 int dma = stream->dma, fmt, dir; in snd_vortex_pcm_prepare()
331 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_vortex_pcm_prepare()
359 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_trigger() local
360 int dma = stream->dma; in snd_vortex_pcm_trigger()
367 stream->fifo_enabled = 1; in snd_vortex_pcm_trigger()
382 stream->fifo_enabled = 0; in snd_vortex_pcm_trigger()
422 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_pointer() local
423 int dma = stream->dma; in snd_vortex_pcm_pointer()