Lines Matching refs:runtime
424 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open() local
433 err = snd_pcm_hw_constraint_pow2(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cx88_pcm_open()
439 runtime->hw = snd_cx88_digital_hw; in snd_cx88_pcm_open()
444 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open()
445 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open()
473 if (substream->runtime->dma_area) { in snd_cx88_hw_params()
475 substream->runtime->dma_area = NULL; in snd_cx88_hw_params()
510 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx88_hw_params()
511 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
512 substream->runtime->dma_addr = 0; in snd_cx88_hw_params()
528 if (substream->runtime->dma_area) { in snd_cx88_hw_free()
530 substream->runtime->dma_area = NULL; in snd_cx88_hw_free()
578 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pointer() local
586 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx88_pointer()
595 void *pageptr = substream->runtime->dma_area + offset; in snd_cx88_page()