Lines Matching defs:runtime
406 struct snd_pcm_runtime *runtime = substream->runtime;
414 err = snd_pcm_hw_constraint_pow2(runtime, 0,
421 runtime->hw = snd_cx88_digital_hw;
427 runtime->hw.period_bytes_min = bpl;
428 runtime->hw.period_bytes_max = bpl;
456 if (substream->runtime->dma_area) {
458 substream->runtime->dma_area = NULL;
493 substream->runtime->dma_area = chip->buf->vaddr;
494 substream->runtime->dma_bytes = chip->dma_size;
495 substream->runtime->dma_addr = 0;
510 if (substream->runtime->dma_area) {
512 substream->runtime->dma_area = NULL;
560 struct snd_pcm_runtime *runtime = substream->runtime;
566 // count, new, count & (runtime->periods-1),
567 // runtime->period_size * (count & (runtime->periods-1)));
568 return runtime->period_size * (count & (runtime->periods - 1));
577 void *pageptr = substream->runtime->dma_area + offset;