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()
183 err = snd_pcm_lib_malloc_pages(substream, in ct_pcm_hw_params()
192 static int ct_pcm_hw_free(struct snd_pcm_substream *substream) in ct_pcm_hw_free() argument
194 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_free()
195 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_free()
200 return snd_pcm_lib_free_pages(substream); in ct_pcm_hw_free()
204 static int ct_pcm_playback_prepare(struct snd_pcm_substream *substream) in ct_pcm_playback_prepare() argument
207 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_prepare()
208 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare()
211 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
226 ct_pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in ct_pcm_playback_trigger() argument
228 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_trigger()
229 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger()
251 ct_pcm_playback_pointer(struct snd_pcm_substream *substream) in ct_pcm_playback_pointer() argument
254 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_pointer()
255 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_pointer()
267 static int ct_pcm_capture_open(struct snd_pcm_substream *substream) in ct_pcm_capture_open() argument
269 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_open()
270 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_open()
279 apcm->substream = substream; in ct_pcm_capture_open()
310 static int ct_pcm_capture_close(struct snd_pcm_substream *substream) in ct_pcm_capture_close() argument
317 static int ct_pcm_capture_prepare(struct snd_pcm_substream *substream) in ct_pcm_capture_prepare() argument
320 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_prepare()
321 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_prepare()
335 ct_pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in ct_pcm_capture_trigger() argument
337 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_trigger()
338 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_trigger()
357 ct_pcm_capture_pointer(struct snd_pcm_substream *substream) in ct_pcm_capture_pointer() argument
360 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_pointer()
361 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_pointer()