Lines Matching refs:runtime
211 struct snd_pcm_runtime *runtime = substream->runtime; in snd_at73c213_pcm_open() local
215 err = snd_pcm_hw_constraint_integer(runtime, in snd_at73c213_pcm_open()
221 runtime->hw = snd_at73c213_playback_hw; in snd_at73c213_pcm_open()
257 struct snd_pcm_runtime *runtime = substream->runtime; in snd_at73c213_pcm_prepare() local
260 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_pcm_prepare()
265 (long)runtime->dma_addr); in snd_at73c213_pcm_prepare()
267 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare()
269 (long)runtime->dma_addr + block_size); in snd_at73c213_pcm_prepare()
271 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare()
308 struct snd_pcm_runtime *runtime = substream->runtime; in snd_at73c213_pcm_pointer() local
313 - (unsigned long)runtime->dma_addr; in snd_at73c213_pcm_pointer()
315 pos = bytes_to_frames(runtime, bytes); in snd_at73c213_pcm_pointer()
316 if (pos >= runtime->buffer_size) in snd_at73c213_pcm_pointer()
317 pos -= runtime->buffer_size; in snd_at73c213_pcm_pointer()
360 struct snd_pcm_runtime *runtime = chip->substream->runtime; in snd_at73c213_interrupt() local
369 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_interrupt()
374 if (chip->period == runtime->periods) in snd_at73c213_interrupt()
377 if (next_period == runtime->periods) in snd_at73c213_interrupt()
383 (long)runtime->dma_addr + offset); in snd_at73c213_interrupt()
385 runtime->period_size * runtime->channels); in snd_at73c213_interrupt()