Lines Matching defs:runtime
214 static int snd_cs4231_xrate(struct snd_pcm_runtime *runtime)
216 return snd_pcm_hw_constraint_list(runtime, 0,
427 struct snd_pcm_runtime *runtime = substream->runtime;
437 runtime->dma_addr + offset, period_size))
439 (*periods_sent) = ((*periods_sent) + 1) % runtime->periods;
904 struct snd_pcm_runtime *runtime = substream->runtime;
913 if (WARN_ON(runtime->period_size > 0xffff + 1)) {
967 chip->capture_substream->runtime->overrange++;
999 ptr -= substream->runtime->dma_addr;
1001 return bytes_to_frames(substream->runtime, ptr);
1015 ptr -= substream->runtime->dma_addr;
1017 return bytes_to_frames(substream->runtime, ptr);
1134 struct snd_pcm_runtime *runtime = substream->runtime;
1137 runtime->hw = snd_cs4231_playback;
1145 snd_cs4231_xrate(runtime);
1153 struct snd_pcm_runtime *runtime = substream->runtime;
1156 runtime->hw = snd_cs4231_capture;
1164 snd_cs4231_xrate(runtime);