Lines Matching refs:runtime
213 static int snd_cs4231_xrate(struct snd_pcm_runtime *runtime) in snd_cs4231_xrate() argument
215 return snd_pcm_hw_constraint_list(runtime, 0, in snd_cs4231_xrate()
426 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4231_advance_dma() local
436 runtime->dma_addr + offset, period_size)) in snd_cs4231_advance_dma()
438 (*periods_sent) = ((*periods_sent) + 1) % runtime->periods; in snd_cs4231_advance_dma()
908 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4231_playback_prepare() local
917 if (WARN_ON(runtime->period_size > 0xffff + 1)) { in snd_cs4231_playback_prepare()
976 chip->capture_substream->runtime->overrange++; in snd_cs4231_overrange()
1008 ptr -= substream->runtime->dma_addr; in snd_cs4231_playback_pointer()
1010 return bytes_to_frames(substream->runtime, ptr); in snd_cs4231_playback_pointer()
1024 ptr -= substream->runtime->dma_addr; in snd_cs4231_capture_pointer()
1026 return bytes_to_frames(substream->runtime, ptr); in snd_cs4231_capture_pointer()
1143 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4231_playback_open() local
1146 runtime->hw = snd_cs4231_playback; in snd_cs4231_playback_open()
1150 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_cs4231_playback_open()
1156 snd_cs4231_xrate(runtime); in snd_cs4231_playback_open()
1164 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4231_capture_open() local
1167 runtime->hw = snd_cs4231_capture; in snd_cs4231_capture_open()
1171 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_cs4231_capture_open()
1177 snd_cs4231_xrate(runtime); in snd_cs4231_capture_open()