Lines Matching defs:runtime
213 static int snd_cs4231_xrate(struct snd_pcm_runtime *runtime)
215 return snd_pcm_hw_constraint_list(runtime, 0,
426 struct snd_pcm_runtime *runtime = substream->runtime;
436 runtime->dma_addr + offset, period_size))
438 (*periods_sent) = ((*periods_sent) + 1) % runtime->periods;
903 struct snd_pcm_runtime *runtime = substream->runtime;
912 if (WARN_ON(runtime->period_size > 0xffff + 1)) {
966 chip->capture_substream->runtime->overrange++;
998 ptr -= substream->runtime->dma_addr;
1000 return bytes_to_frames(substream->runtime, ptr);
1014 ptr -= substream->runtime->dma_addr;
1016 return bytes_to_frames(substream->runtime, ptr);
1133 struct snd_pcm_runtime *runtime = substream->runtime;
1136 runtime->hw = snd_cs4231_playback;
1144 snd_cs4231_xrate(runtime);
1152 struct snd_pcm_runtime *runtime = substream->runtime;
1155 runtime->hw = snd_cs4231_capture;
1163 snd_cs4231_xrate(runtime);