Lines Matching refs:substream

58 			      struct snd_pcm_substream *substream)
60 struct snd_pcm_runtime *runtime = substream->runtime;
66 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
67 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32;
70 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32;
83 err = snd_pcm_hw_rule_add(substream->runtime, 0,
90 err = snd_pcm_hw_rule_add(substream->runtime, 0,
97 return amdtp_dot_add_pcm_hw_constraints(s, substream->runtime);
100 static int pcm_open(struct snd_pcm_substream *substream)
102 struct snd_dg00x *dg00x = substream->private_data;
112 err = pcm_init_hw_params(dg00x, substream);
146 substream->runtime->hw.rate_min = rate;
147 substream->runtime->hw.rate_max = rate;
150 err = snd_pcm_hw_constraint_minmax(substream->runtime,
158 err = snd_pcm_hw_constraint_minmax(substream->runtime,
170 snd_pcm_set_sync(substream);
178 static int pcm_close(struct snd_pcm_substream *substream)
180 struct snd_dg00x *dg00x = substream->private_data;
187 static int pcm_hw_params(struct snd_pcm_substream *substream,
190 struct snd_dg00x *dg00x = substream->private_data;
193 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
209 static int pcm_hw_free(struct snd_pcm_substream *substream)
211 struct snd_dg00x *dg00x = substream->private_data;
215 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)
225 static int pcm_capture_prepare(struct snd_pcm_substream *substream)
227 struct snd_dg00x *dg00x = substream->private_data;
241 static int pcm_playback_prepare(struct snd_pcm_substream *substream)
243 struct snd_dg00x *dg00x = substream->private_data;
259 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
261 struct snd_dg00x *dg00x = substream->private_data;
265 amdtp_stream_pcm_trigger(&dg00x->tx_stream, substream);
277 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
279 struct snd_dg00x *dg00x = substream->private_data;
283 amdtp_stream_pcm_trigger(&dg00x->rx_stream, substream);
309 static int pcm_capture_ack(struct snd_pcm_substream *substream)
311 struct snd_dg00x *dg00x = substream->private_data;
316 static int pcm_playback_ack(struct snd_pcm_substream *substream)
318 struct snd_dg00x *dg00x = substream->private_data;