Lines Matching refs:runtime

103 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime)  in ct_atc_pcm_free_substream()  argument
105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
111 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
129 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
132 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
134 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
137 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
142 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
153 runtime->private_data = apcm; in ct_pcm_playback_open()
154 runtime->private_free = ct_atc_pcm_free_substream; in ct_pcm_playback_open()
180 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_params()
190 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_free()
202 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare() local
203 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_prepare()
223 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger() local
224 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_trigger()
249 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_pointer() local
250 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_pointer()
254 position = bytes_to_frames(runtime, position); in ct_pcm_playback_pointer()
255 if (position >= runtime->buffer_size) in ct_pcm_playback_pointer()
264 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_open() local
275 runtime->hw = ct_pcm_capture_hw; in ct_pcm_capture_open()
276 runtime->hw.rate_max = atc->rsr * atc->msr; in ct_pcm_capture_open()
278 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_capture_open()
283 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_capture_open()
294 runtime->private_data = apcm; in ct_pcm_capture_open()
295 runtime->private_free = ct_atc_pcm_free_substream; in ct_pcm_capture_open()
315 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_prepare() local
316 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_prepare()
332 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_trigger() local
333 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_trigger()
355 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_pointer() local
356 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_pointer()
360 position = bytes_to_frames(runtime, position); in ct_pcm_capture_pointer()
361 if (position >= runtime->buffer_size) in ct_pcm_capture_pointer()