Lines Matching full:runtime

103 	struct snd_pcm_runtime *runtime;  in cobalt_alsa_announce_pcm_data()  local
120 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data()
121 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data()
122 dprintk("runtime was NULL\n"); in cobalt_alsa_announce_pcm_data()
125 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data()
127 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data()
138 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data()
144 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data()
145 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data()
149 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
153 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data()
159 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
167 runtime->buffer_size) in cobalt_alsa_announce_pcm_data()
169 runtime->buffer_size; in cobalt_alsa_announce_pcm_data()
173 runtime->period_size) { in cobalt_alsa_announce_pcm_data()
175 runtime->period_size; in cobalt_alsa_announce_pcm_data()
209 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cobalt_pcm_capture_open() local
213 runtime->hw = snd_cobalt_hdmi_capture; in snd_cobalt_pcm_capture_open()
214 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cobalt_pcm_capture_open()
216 runtime->private_data = s; in snd_cobalt_pcm_capture_open()
251 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pcm_alloc_vmalloc_buffer() local
254 if (runtime->dma_area) { in snd_pcm_alloc_vmalloc_buffer()
255 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
258 vfree(runtime->dma_area); in snd_pcm_alloc_vmalloc_buffer()
260 runtime->dma_area = vmalloc(size); in snd_pcm_alloc_vmalloc_buffer()
261 if (!runtime->dma_area) in snd_pcm_alloc_vmalloc_buffer()
264 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
280 if (substream->runtime->dma_area) { in snd_cobalt_pcm_hw_free()
282 vfree(substream->runtime->dma_area); in snd_cobalt_pcm_hw_free()
283 substream->runtime->dma_area = NULL; in snd_cobalt_pcm_hw_free()
351 struct snd_pcm_runtime *runtime; in cobalt_alsa_pb_pcm_data() local
367 runtime = substream->runtime; in cobalt_alsa_pb_pcm_data()
368 if (runtime == NULL) { in cobalt_alsa_pb_pcm_data()
369 dprintk("runtime was NULL\n"); in cobalt_alsa_pb_pcm_data()
373 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_pb_pcm_data()
374 stride = runtime->frame_bits >> 3; in cobalt_alsa_pb_pcm_data()
385 if (runtime->dma_area == NULL) { in cobalt_alsa_pb_pcm_data()
393 runtime->dma_area + pos + i * stride, in cobalt_alsa_pb_pcm_data()
419 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cobalt_pcm_playback_open() local
422 runtime->hw = snd_cobalt_playback; in snd_cobalt_pcm_playback_open()
423 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cobalt_pcm_playback_open()
425 runtime->private_data = s; in snd_cobalt_pcm_playback_open()
489 return bytes_to_frames(substream->runtime, ptr) % in snd_cobalt_pcm_pb_pointer()
490 substream->runtime->buffer_size; in snd_cobalt_pcm_pb_pointer()
496 void *pageptr = subs->runtime->dma_area + offset; in snd_pcm_get_vmalloc_page()