Lines Matching defs:runtime
102 struct snd_pcm_runtime *runtime;
119 runtime = substream->runtime;
120 if (runtime == NULL) {
121 dprintk("runtime was NULL\n");
124 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE;
126 stride = runtime->frame_bits >> 3;
137 if (runtime->dma_area == NULL) {
143 if (oldptr + length >= runtime->buffer_size) {
144 unsigned int cnt = runtime->buffer_size - oldptr;
148 sample_cpy(runtime->dma_area + (oldptr + i) * stride,
152 sample_cpy(runtime->dma_area + (i - cnt) * stride,
158 sample_cpy(runtime->dma_area + (oldptr + i) * stride,
166 runtime->buffer_size)
168 runtime->buffer_size;
172 runtime->period_size) {
174 runtime->period_size;
208 struct snd_pcm_runtime *runtime = substream->runtime;
212 runtime->hw = snd_cobalt_hdmi_capture;
213 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
215 runtime->private_data = s;
302 struct snd_pcm_runtime *runtime;
318 runtime = substream->runtime;
319 if (runtime == NULL) {
320 dprintk("runtime was NULL\n");
324 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE;
325 stride = runtime->frame_bits >> 3;
336 if (runtime->dma_area == NULL) {
344 runtime->dma_area + pos + i * stride,
370 struct snd_pcm_runtime *runtime = substream->runtime;
373 runtime->hw = snd_cobalt_playback;
374 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
376 runtime->private_data = s;
440 return bytes_to_frames(substream->runtime, ptr) %
441 substream->runtime->buffer_size;