Lines Matching refs:substream

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