Lines Matching defs:runtime
131 struct snd_pcm_runtime *runtime = substream->runtime;
134 err = snd_pcm_hw_constraint_pow2(runtime, 0,
141 runtime->hw = snd_tm6000_digital_hw;
142 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
170 struct snd_pcm_runtime *runtime;
183 runtime = substream->runtime;
184 if (!runtime || !runtime->dma_area) {
185 dprintk(1, "runtime was NULL\n");
190 stride = runtime->frame_bits >> 3;
204 runtime->dma_area, buf_pos,
205 (unsigned int)runtime->buffer_size, stride);
207 if (buf_pos + length >= runtime->buffer_size) {
208 unsigned int cnt = runtime->buffer_size - buf_pos;
209 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride);
210 memcpy(runtime->dma_area, buf + cnt * stride,
213 memcpy(runtime->dma_area + buf_pos * stride, buf,
219 if (chip->buf_pos >= runtime->buffer_size)
220 chip->buf_pos -= runtime->buffer_size;
223 if (chip->period_pos >= runtime->period_size) {
224 chip->period_pos -= runtime->period_size;