Lines Matching refs:runtime

77 	struct snd_pcm_runtime *runtime;  in cx18_alsa_announce_pcm_data()  local
92 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
93 if (runtime == NULL) { in cx18_alsa_announce_pcm_data()
98 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data()
110 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data()
116 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data()
118 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data()
119 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
121 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data()
124 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
131 runtime->buffer_size) in cx18_alsa_announce_pcm_data()
133 runtime->buffer_size; in cx18_alsa_announce_pcm_data()
137 runtime->period_size) { in cx18_alsa_announce_pcm_data()
139 runtime->period_size; in cx18_alsa_announce_pcm_data()
152 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx18_pcm_capture_open() local
182 runtime->hw = snd_cx18_hw_capture; in snd_cx18_pcm_capture_open()
183 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cx18_pcm_capture_open()
185 runtime->private_data = cx; in snd_cx18_pcm_capture_open()
234 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pcm_alloc_vmalloc_buffer() local
237 if (runtime->dma_area) { in snd_pcm_alloc_vmalloc_buffer()
238 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
241 vfree(runtime->dma_area); in snd_pcm_alloc_vmalloc_buffer()
243 runtime->dma_area = vmalloc(size); in snd_pcm_alloc_vmalloc_buffer()
244 if (!runtime->dma_area) in snd_pcm_alloc_vmalloc_buffer()
247 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
267 if (substream->runtime->dma_area) { in snd_cx18_pcm_hw_free()
269 vfree(substream->runtime->dma_area); in snd_cx18_pcm_hw_free()
270 substream->runtime->dma_area = NULL; in snd_cx18_pcm_hw_free()
309 void *pageptr = subs->runtime->dma_area + offset; in snd_pcm_get_vmalloc_page()