Lines Matching refs:runtime

235 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_ad1816a_playback_prepare()  local
244 snd_dma_program(chip->dma1, runtime->dma_addr, size, in snd_ad1816a_playback_prepare()
247 rate = runtime->rate; in snd_ad1816a_playback_prepare()
253 snd_ad1816a_get_format(chip, runtime->format, in snd_ad1816a_playback_prepare()
254 runtime->channels)); in snd_ad1816a_playback_prepare()
267 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ad1816a_capture_prepare() local
276 snd_dma_program(chip->dma2, runtime->dma_addr, size, in snd_ad1816a_capture_prepare()
279 rate = runtime->rate; in snd_ad1816a_capture_prepare()
285 snd_ad1816a_get_format(chip, runtime->format, in snd_ad1816a_capture_prepare()
286 runtime->channels)); in snd_ad1816a_capture_prepare()
303 return bytes_to_frames(substream->runtime, ptr); in snd_ad1816a_playback_pointer()
313 return bytes_to_frames(substream->runtime, ptr); in snd_ad1816a_capture_pointer()
448 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ad1816a_playback_open() local
453 runtime->hw = snd_ad1816a_playback; in snd_ad1816a_playback_open()
454 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.buffer_bytes_max); in snd_ad1816a_playback_open()
455 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.period_bytes_max); in snd_ad1816a_playback_open()
463 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ad1816a_capture_open() local
468 runtime->hw = snd_ad1816a_capture; in snd_ad1816a_capture_open()
469 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_ad1816a_capture_open()
470 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_ad1816a_capture_open()