Lines Matching defs:runtime

103 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime)
105 struct ct_atc_pcm *apcm = runtime->private_data;
111 runtime->private_data = NULL;
118 struct snd_pcm_runtime *runtime = substream->runtime;
129 runtime->hw = ct_spdif_passthru_playback_hw;
132 runtime->hw = ct_pcm_playback_hw;
134 runtime->hw.channels_max = 8;
137 err = snd_pcm_hw_constraint_integer(runtime,
142 err = snd_pcm_hw_constraint_minmax(runtime,
153 runtime->private_data = apcm;
154 runtime->private_free = ct_atc_pcm_free_substream;
171 /* The ct_atc_pcm object will be freed by runtime->private_free */
180 struct ct_atc_pcm *apcm = substream->runtime->private_data;
190 struct ct_atc_pcm *apcm = substream->runtime->private_data;
202 struct snd_pcm_runtime *runtime = substream->runtime;
203 struct ct_atc_pcm *apcm = runtime->private_data;
223 struct snd_pcm_runtime *runtime = substream->runtime;
224 struct ct_atc_pcm *apcm = runtime->private_data;
249 struct snd_pcm_runtime *runtime = substream->runtime;
250 struct ct_atc_pcm *apcm = runtime->private_data;
254 position = bytes_to_frames(runtime, position);
255 if (position >= runtime->buffer_size)
264 struct snd_pcm_runtime *runtime = substream->runtime;
275 runtime->hw = ct_pcm_capture_hw;
276 runtime->hw.rate_max = atc->rsr * atc->msr;
278 err = snd_pcm_hw_constraint_integer(runtime,
283 err = snd_pcm_hw_constraint_minmax(runtime,
294 runtime->private_data = apcm;
295 runtime->private_free = ct_atc_pcm_free_substream;
306 /* The ct_atc_pcm object will be freed by runtime->private_free */
315 struct snd_pcm_runtime *runtime = substream->runtime;
316 struct ct_atc_pcm *apcm = runtime->private_data;
332 struct snd_pcm_runtime *runtime = substream->runtime;
333 struct ct_atc_pcm *apcm = runtime->private_data;
355 struct snd_pcm_runtime *runtime = substream->runtime;
356 struct ct_atc_pcm *apcm = runtime->private_data;
360 position = bytes_to_frames(runtime, position);
361 if (position >= runtime->buffer_size)