Lines Matching refs:substream

101 	if (!apcm->substream)  in ct_atc_pcm_interrupt()
104 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
110 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream()
119 static int ct_pcm_playback_open(struct snd_pcm_substream *substream) in ct_pcm_playback_open() argument
121 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_open()
122 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open()
130 apcm->substream = substream; in ct_pcm_playback_open()
132 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open()
137 if (FRONT == substream->pcm->device) in ct_pcm_playback_open()
166 static int ct_pcm_playback_close(struct snd_pcm_substream *substream) in ct_pcm_playback_close() argument
168 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_close()
171 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close()
179 static int ct_pcm_hw_params(struct snd_pcm_substream *substream, in ct_pcm_hw_params() argument
182 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_params()
183 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_params()
186 err = snd_pcm_lib_malloc_pages(substream, in ct_pcm_hw_params()
195 static int ct_pcm_hw_free(struct snd_pcm_substream *substream) in ct_pcm_hw_free() argument
197 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_free()
198 struct ct_atc_pcm *apcm = substream->runtime->private_data; in ct_pcm_hw_free()
203 return snd_pcm_lib_free_pages(substream); in ct_pcm_hw_free()
207 static int ct_pcm_playback_prepare(struct snd_pcm_substream *substream) in ct_pcm_playback_prepare() argument
210 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_prepare()
211 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare()
214 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
229 ct_pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in ct_pcm_playback_trigger() argument
231 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_trigger()
232 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger()
254 ct_pcm_playback_pointer(struct snd_pcm_substream *substream) in ct_pcm_playback_pointer() argument
257 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_pointer()
258 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_pointer()
270 static int ct_pcm_capture_open(struct snd_pcm_substream *substream) in ct_pcm_capture_open() argument
272 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_open()
273 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_open()
282 apcm->substream = substream; in ct_pcm_capture_open()
312 static int ct_pcm_capture_close(struct snd_pcm_substream *substream) in ct_pcm_capture_close() argument
319 static int ct_pcm_capture_prepare(struct snd_pcm_substream *substream) in ct_pcm_capture_prepare() argument
322 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_prepare()
323 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_prepare()
337 ct_pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in ct_pcm_capture_trigger() argument
339 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_trigger()
340 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_trigger()
359 ct_pcm_capture_pointer(struct snd_pcm_substream *substream) in ct_pcm_capture_pointer() argument
362 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_pointer()
363 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_capture_pointer()