Lines Matching full: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()
171 /* The ct_atc_pcm object will be freed by runtime->private_free */ in ct_pcm_playback_close()
180 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_params()
195 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_free()
208 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare() local
209 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_prepare()
229 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger() local
230 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_trigger()
255 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_pointer() local
256 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_pointer()
260 position = bytes_to_frames(runtime, position); in ct_pcm_playback_pointer()
261 if (position >= runtime->buffer_size) in ct_pcm_playback_pointer()
270 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_open() local
281 runtime->hw = ct_pcm_capture_hw; in ct_pcm_capture_open()
282 runtime->hw.rate_max = atc->rsr * atc->msr; in ct_pcm_capture_open()
284 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_capture_open()
289 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_capture_open()
300 runtime->private_data = apcm; in ct_pcm_capture_open()
301 runtime->private_free = ct_atc_pcm_free_substream; in ct_pcm_capture_open()
312 /* The ct_atc_pcm object will be freed by runtime->private_free */ in ct_pcm_capture_close()
321 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_prepare() local
322 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_prepare()
338 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_trigger() local
339 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_trigger()
361 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_pointer() local
362 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_pointer()
366 position = bytes_to_frames(runtime, position); in ct_pcm_capture_pointer()
367 if (position >= runtime->buffer_size) in ct_pcm_capture_pointer()