Lines Matching refs:runtime
107 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument
109 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
115 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
122 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
133 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
136 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
138 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
141 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
147 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
160 runtime->private_data = apcm; in ct_pcm_playback_open()
161 runtime->private_free = ct_atc_pcm_free_substream; in ct_pcm_playback_open()
183 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_params()
198 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_free()
211 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare() local
212 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_prepare()
232 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger() local
233 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_trigger()
258 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_pointer() local
259 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_playback_pointer()
263 position = bytes_to_frames(runtime, position); in ct_pcm_playback_pointer()
264 if (position >= runtime->buffer_size) in ct_pcm_playback_pointer()
273 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_open() local
284 runtime->hw = ct_pcm_capture_hw; in ct_pcm_capture_open()
285 runtime->hw.rate_max = atc->rsr * atc->msr; in ct_pcm_capture_open()
287 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_capture_open()
293 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_capture_open()
306 runtime->private_data = apcm; in ct_pcm_capture_open()
307 runtime->private_free = ct_atc_pcm_free_substream; in ct_pcm_capture_open()
323 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_prepare() local
324 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_prepare()
340 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_trigger() local
341 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_trigger()
363 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_pointer() local
364 struct ct_atc_pcm *apcm = runtime->private_data; in ct_pcm_capture_pointer()
368 position = bytes_to_frames(runtime, position); in ct_pcm_capture_pointer()
369 if (position >= runtime->buffer_size) in ct_pcm_capture_pointer()