Lines Matching refs:runtime
91 hw = &pi->substream->runtime->hw; in i2sbus_pcm_open()
196 err = snd_pcm_hw_constraint_integer(pi->substream->runtime, in i2sbus_pcm_open()
331 struct snd_pcm_runtime *runtime; in i2sbus_pcm_prepare() local
356 if (!pi->substream || !pi->substream->runtime) { in i2sbus_pcm_prepare()
361 runtime = pi->substream->runtime; in i2sbus_pcm_prepare()
364 ((i2sdev->format != runtime->format) in i2sbus_pcm_prepare()
365 || (i2sdev->rate != runtime->rate))) { in i2sbus_pcm_prepare()
370 i2sdev->format = runtime->format; in i2sbus_pcm_prepare()
371 i2sdev->rate = runtime->rate; in i2sbus_pcm_prepare()
374 nperiods = pi->substream->runtime->periods; in i2sbus_pcm_prepare()
393 offset = runtime->dma_addr; in i2sbus_pcm_prepare()
413 switch (runtime->format) { in i2sbus_pcm_prepare()
449 runtime->rate, in i2sbus_pcm_prepare()
630 if (fc >= pi->substream->runtime->buffer_size) in i2sbus_pcm_pointer()
631 fc %= pi->substream->runtime->buffer_size; in i2sbus_pcm_pointer()
642 struct snd_pcm_runtime *runtime; in handle_interrupt() local
650 runtime = pi->substream->runtime; in handle_interrupt()
661 if (++i >= runtime->periods) { in handle_interrupt()
663 pi->frame_count += runtime->buffer_size; in handle_interrupt()
672 nframes = i * runtime->period_size; in handle_interrupt()