Lines Matching defs:substream

110 			  struct snd_pcm_substream *substream)
112 struct snd_pcm_runtime *runtime = substream->runtime;
117 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
146 static int limit_to_current_params(struct snd_pcm_substream *substream)
148 struct snd_oxfw *oxfw = substream->private_data;
153 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
162 substream->runtime->hw.channels_min = formation.pcm;
163 substream->runtime->hw.channels_max = formation.pcm;
164 substream->runtime->hw.rate_min = formation.rate;
165 substream->runtime->hw.rate_max = formation.rate;
170 static int pcm_open(struct snd_pcm_substream *substream)
172 struct snd_oxfw *oxfw = substream->private_data;
180 err = init_hw_params(oxfw, substream);
193 err = limit_to_current_params(substream);
200 err = snd_pcm_hw_constraint_minmax(substream->runtime,
208 err = snd_pcm_hw_constraint_minmax(substream->runtime,
220 snd_pcm_set_sync(substream);
228 static int pcm_close(struct snd_pcm_substream *substream)
230 struct snd_oxfw *oxfw = substream->private_data;
236 static int pcm_capture_hw_params(struct snd_pcm_substream *substream,
239 struct snd_oxfw *oxfw = substream->private_data;
242 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
259 static int pcm_playback_hw_params(struct snd_pcm_substream *substream,
262 struct snd_oxfw *oxfw = substream->private_data;
265 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
283 static int pcm_capture_hw_free(struct snd_pcm_substream *substream)
285 struct snd_oxfw *oxfw = substream->private_data;
289 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)
298 static int pcm_playback_hw_free(struct snd_pcm_substream *substream)
300 struct snd_oxfw *oxfw = substream->private_data;
304 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)
314 static int pcm_capture_prepare(struct snd_pcm_substream *substream)
316 struct snd_oxfw *oxfw = substream->private_data;
329 static int pcm_playback_prepare(struct snd_pcm_substream *substream)
331 struct snd_oxfw *oxfw = substream->private_data;
345 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
347 struct snd_oxfw *oxfw = substream->private_data;
352 pcm = substream;
363 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
365 struct snd_oxfw *oxfw = substream->private_data;
370 pcm = substream;
395 static int pcm_capture_ack(struct snd_pcm_substream *substream)
397 struct snd_oxfw *oxfw = substream->private_data;
402 static int pcm_playback_ack(struct snd_pcm_substream *substream)
404 struct snd_oxfw *oxfw = substream->private_data;