Lines Matching refs:substream

14 	struct snd_pcm_substream *substream = rule->private;
15 struct snd_dice *dice = substream->private_data;
16 unsigned int index = substream->pcm->device;
29 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
52 struct snd_pcm_substream *substream = rule->private;
53 struct snd_dice *dice = substream->private_data;
54 unsigned int index = substream->pcm->device;
67 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
126 struct snd_pcm_substream *substream)
128 struct snd_pcm_runtime *runtime = substream->runtime;
130 unsigned int index = substream->pcm->device;
135 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
145 err = limit_channels_and_rates(dice, substream->runtime, dir,
151 dice_rate_constraint, substream,
156 dice_channels_constraint, substream,
164 static int pcm_open(struct snd_pcm_substream *substream)
166 struct snd_dice *dice = substream->private_data;
176 err = init_hw_info(dice, substream);
216 substream->runtime->hw.rate_min = rate;
217 substream->runtime->hw.rate_max = rate;
226 err = snd_pcm_hw_constraint_minmax(substream->runtime,
234 err = snd_pcm_hw_constraint_minmax(substream->runtime,
246 snd_pcm_set_sync(substream);
254 static int pcm_close(struct snd_pcm_substream *substream)
256 struct snd_dice *dice = substream->private_data;
263 static int pcm_hw_params(struct snd_pcm_substream *substream,
266 struct snd_dice *dice = substream->private_data;
269 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
290 static int pcm_hw_free(struct snd_pcm_substream *substream)
292 struct snd_dice *dice = substream->private_data;
296 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)
306 static int capture_prepare(struct snd_pcm_substream *substream)
308 struct snd_dice *dice = substream->private_data;
309 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
320 static int playback_prepare(struct snd_pcm_substream *substream)
322 struct snd_dice *dice = substream->private_data;
323 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
335 static int capture_trigger(struct snd_pcm_substream *substream, int cmd)
337 struct snd_dice *dice = substream->private_data;
338 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
342 amdtp_stream_pcm_trigger(stream, substream);
353 static int playback_trigger(struct snd_pcm_substream *substream, int cmd)
355 struct snd_dice *dice = substream->private_data;
356 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
360 amdtp_stream_pcm_trigger(stream, substream);
372 static snd_pcm_uframes_t capture_pointer(struct snd_pcm_substream *substream)
374 struct snd_dice *dice = substream->private_data;
375 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
379 static snd_pcm_uframes_t playback_pointer(struct snd_pcm_substream *substream)
381 struct snd_dice *dice = substream->private_data;
382 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
387 static int capture_ack(struct snd_pcm_substream *substream)
389 struct snd_dice *dice = substream->private_data;
390 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
395 static int playback_ack(struct snd_pcm_substream *substream)
397 struct snd_dice *dice = substream->private_data;
398 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];