Lines Matching refs:runtime

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