Lines Matching defs:runtime
124 struct snd_pcm_runtime *runtime = substream->runtime;
155 if (runtime->buffer_changed) {
156 ret = create_page_table(component, substream, runtime->dma_area,
157 runtime->dma_bytes);
163 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes);
172 pcm.params.buffer.size = runtime->dma_bytes;
444 host = bytes_to_frames(substream->runtime,
446 dai = bytes_to_frames(substream->runtime,
460 struct snd_pcm_runtime *runtime = substream->runtime;
481 /* set any runtime constraints based on topology */
482 snd_pcm_hw_constraint_step(substream->runtime, 0,
485 snd_pcm_hw_constraint_step(substream->runtime, 0,
489 /* set runtime config */
490 runtime->hw.info = ops->hw_info; /* platform-specific */
492 runtime->hw.formats = le64_to_cpu(caps->formats);
493 runtime->hw.period_bytes_min = le32_to_cpu(caps->period_size_min);
494 runtime->hw.period_bytes_max = le32_to_cpu(caps->period_size_max);
495 runtime->hw.periods_min = le32_to_cpu(caps->periods_min);
496 runtime->hw.periods_max = le32_to_cpu(caps->periods_max);
502 runtime->hw.buffer_bytes_max = le32_to_cpu(caps->buffer_size_max);
505 runtime->hw.period_bytes_min,
506 runtime->hw.period_bytes_max);
508 runtime->hw.periods_min,
509 runtime->hw.periods_max);
511 runtime->hw.buffer_bytes_max);