Lines Matching defs:substream
96 struct snd_pcm_substream *substream)
98 struct snd_pcm_runtime *runtime = substream->runtime;
104 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
130 static int pcm_open(struct snd_pcm_substream *substream)
132 struct snd_motu *motu = substream->private_data;
147 err = init_hw_info(motu, substream);
169 substream->runtime->hw.rate_min = rate;
170 substream->runtime->hw.rate_max = rate;
173 err = snd_pcm_hw_constraint_minmax(substream->runtime,
179 err = snd_pcm_hw_constraint_minmax(substream->runtime,
187 snd_pcm_set_sync(substream);
198 static int pcm_close(struct snd_pcm_substream *substream)
200 struct snd_motu *motu = substream->private_data;
207 static int pcm_hw_params(struct snd_pcm_substream *substream,
210 struct snd_motu *motu = substream->private_data;
213 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
229 static int pcm_hw_free(struct snd_pcm_substream *substream)
231 struct snd_motu *motu = substream->private_data;
235 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
245 static int capture_prepare(struct snd_pcm_substream *substream)
247 struct snd_motu *motu = substream->private_data;
258 static int playback_prepare(struct snd_pcm_substream *substream)
260 struct snd_motu *motu = substream->private_data;
272 static int capture_trigger(struct snd_pcm_substream *substream, int cmd)
274 struct snd_motu *motu = substream->private_data;
278 amdtp_stream_pcm_trigger(&motu->tx_stream, substream);
289 static int playback_trigger(struct snd_pcm_substream *substream, int cmd)
291 struct snd_motu *motu = substream->private_data;
295 amdtp_stream_pcm_trigger(&motu->rx_stream, substream);
307 static snd_pcm_uframes_t capture_pointer(struct snd_pcm_substream *substream)
309 struct snd_motu *motu = substream->private_data;
313 static snd_pcm_uframes_t playback_pointer(struct snd_pcm_substream *substream)
315 struct snd_motu *motu = substream->private_data;
320 static int capture_ack(struct snd_pcm_substream *substream)
322 struct snd_motu *motu = substream->private_data;
327 static int playback_ack(struct snd_pcm_substream *substream)
329 struct snd_motu *motu = substream->private_data;