Lines Matching refs:substream
97 if (!apcm->substream) in ct_atc_pcm_interrupt()
100 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
106 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream()
115 static int ct_pcm_playback_open(struct snd_pcm_substream *substream) in ct_pcm_playback_open() argument
117 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_open()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open()
126 apcm->substream = substream; in ct_pcm_playback_open()
128 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open()
133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open()
163 static int ct_pcm_playback_close(struct snd_pcm_substream *substream) in ct_pcm_playback_close() argument
165 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_close()
168 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close()
176 static int ct_pcm_hw_params(struct snd_pcm_substream *substream, in ct_pcm_hw_params() argument
179 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_params()
180 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_params()
187 static int ct_pcm_hw_free(struct snd_pcm_substream *substream) in ct_pcm_hw_free() argument
189 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_free()
190 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_free()
198 static int ct_pcm_playback_prepare(struct snd_pcm_substream *substream) in ct_pcm_playback_prepare() argument
201 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_prepare()
202 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare()
205 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
220 ct_pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in ct_pcm_playback_trigger() argument
222 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_trigger()
223 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger()
245 ct_pcm_playback_pointer(struct snd_pcm_substream *substream) in ct_pcm_playback_pointer() argument
248 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_pointer()
249 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_pointer()
261 static int ct_pcm_capture_open(struct snd_pcm_substream *substream) in ct_pcm_capture_open() argument
263 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_open()
264 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_open()
273 apcm->substream = substream; in ct_pcm_capture_open()
304 static int ct_pcm_capture_close(struct snd_pcm_substream *substream) in ct_pcm_capture_close() argument
311 static int ct_pcm_capture_prepare(struct snd_pcm_substream *substream) in ct_pcm_capture_prepare() argument
314 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_prepare()
315 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_prepare()
329 ct_pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in ct_pcm_capture_trigger() argument
331 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_trigger()
332 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_trigger()
351 ct_pcm_capture_pointer(struct snd_pcm_substream *substream) in ct_pcm_capture_pointer() argument
354 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_pointer()
355 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_pointer()