Lines Matching refs:runtime

141 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_vortex_pcm_open()  local
146 snd_pcm_hw_constraint_integer(runtime, in snd_vortex_pcm_open()
151 snd_pcm_hw_constraint_pow2(runtime, 0, in snd_vortex_pcm_open()
155 snd_pcm_hw_constraint_step(runtime, 0, in snd_vortex_pcm_open()
161 runtime->hw = snd_vortex_playback_hw_a3d; in snd_vortex_pcm_open()
165 runtime->hw = snd_vortex_playback_hw_spdif; in snd_vortex_pcm_open()
168 runtime->hw.rates = SNDRV_PCM_RATE_32000; in snd_vortex_pcm_open()
171 runtime->hw.rates = SNDRV_PCM_RATE_44100; in snd_vortex_pcm_open()
174 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_vortex_pcm_open()
180 runtime->hw = snd_vortex_playback_hw_adb; in snd_vortex_pcm_open()
185 runtime->hw.channels_max = 4; in snd_vortex_pcm_open()
186 snd_pcm_hw_constraint_list(runtime, 0, in snd_vortex_pcm_open()
191 substream->runtime->private_data = NULL; in snd_vortex_pcm_open()
195 runtime->hw = snd_vortex_playback_hw_wt; in snd_vortex_pcm_open()
196 substream->runtime->private_data = NULL; in snd_vortex_pcm_open()
206 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_close()
213 substream->runtime->private_data = NULL; in snd_vortex_pcm_close()
223 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_params()
257 stream = substream->runtime->private_data = &chip->dma_adb[dma]; in snd_vortex_pcm_hw_params()
275 stream = substream->runtime->private_data = in snd_vortex_pcm_hw_params()
292 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_free()
316 substream->runtime->private_data = NULL; in snd_vortex_pcm_hw_free()
326 struct snd_pcm_runtime *runtime = substream->runtime; in snd_vortex_pcm_prepare() local
327 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_prepare()
335 fmt = vortex_alsafmt_aspfmt(runtime->format, chip); in snd_vortex_pcm_prepare()
339 runtime->channels == 1 ? 0 : 1, 0); in snd_vortex_pcm_prepare()
342 vortex_adb_setsrc(chip, dma, runtime->rate, dir); in snd_vortex_pcm_prepare()
359 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_trigger()
422 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_pointer()
435 return (bytes_to_frames(substream->runtime, current_ptr)); in snd_vortex_pcm_pointer()