Lines Matching refs:runtime
123 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_abdac_prepare_dma() local
130 if (runtime->dma_addr & 1 || runtime->buffer_size & 1) { in atmel_abdac_prepare_dma()
135 buffer_len = frames_to_bytes(runtime, runtime->buffer_size); in atmel_abdac_prepare_dma()
136 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_abdac_prepare_dma()
138 cdesc = dw_dma_cyclic_prep(chan, runtime->dma_addr, buffer_len, in atmel_abdac_prepare_dma()
182 substream->runtime->hw = atmel_abdac_hw; in atmel_abdac_open()
184 return snd_pcm_hw_constraint_list(substream->runtime, 0, in atmel_abdac_open()
226 retval = clk_set_rate(dac->sample_clk, 256 * substream->runtime->rate); in atmel_abdac_prepare()
271 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_abdac_pointer() local
276 bytes -= runtime->dma_addr; in atmel_abdac_pointer()
278 frames = bytes_to_frames(runtime, bytes); in atmel_abdac_pointer()
279 if (frames >= runtime->buffer_size) in atmel_abdac_pointer()
280 frames -= runtime->buffer_size; in atmel_abdac_pointer()