Lines Matching refs:runtime
62 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local
77 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
78 if (runtime == NULL) { in cx18_alsa_announce_pcm_data()
83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data()
95 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data()
101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data()
103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data()
104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data()
109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
116 runtime->buffer_size) in cx18_alsa_announce_pcm_data()
118 runtime->buffer_size; in cx18_alsa_announce_pcm_data()
122 runtime->period_size) { in cx18_alsa_announce_pcm_data()
124 runtime->period_size; in cx18_alsa_announce_pcm_data()
137 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx18_pcm_capture_open() local
167 runtime->hw = snd_cx18_hw_capture; in snd_cx18_pcm_capture_open()
168 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cx18_pcm_capture_open()
170 runtime->private_data = cx; in snd_cx18_pcm_capture_open()