Lines Matching refs:substream

11 			      struct snd_pcm_substream *substream)  in pcm_init_hw_params()  argument
13 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params()
18 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params()
43 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument
45 struct snd_tscm *tscm = substream->private_data; in pcm_open()
54 err = pcm_init_hw_params(tscm, substream); in pcm_open()
77 substream->runtime->hw.rate_min = rate; in pcm_open()
78 substream->runtime->hw.rate_max = rate; in pcm_open()
80 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open()
88 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open()
99 snd_pcm_set_sync(substream); in pcm_open()
107 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close() argument
109 struct snd_tscm *tscm = substream->private_data; in pcm_close()
116 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params() argument
119 struct snd_tscm *tscm = substream->private_data; in pcm_hw_params()
122 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) { in pcm_hw_params()
138 static int pcm_hw_free(struct snd_pcm_substream *substream) in pcm_hw_free() argument
140 struct snd_tscm *tscm = substream->private_data; in pcm_hw_free()
144 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN) in pcm_hw_free()
154 static int pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare() argument
156 struct snd_tscm *tscm = substream->private_data; in pcm_capture_prepare()
157 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare()
171 static int pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare() argument
173 struct snd_tscm *tscm = substream->private_data; in pcm_playback_prepare()
174 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare()
188 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger() argument
190 struct snd_tscm *tscm = substream->private_data; in pcm_capture_trigger()
194 amdtp_stream_pcm_trigger(&tscm->tx_stream, substream); in pcm_capture_trigger()
206 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger() argument
208 struct snd_tscm *tscm = substream->private_data; in pcm_playback_trigger()
212 amdtp_stream_pcm_trigger(&tscm->rx_stream, substream); in pcm_playback_trigger()
238 static int pcm_capture_ack(struct snd_pcm_substream *substream) in pcm_capture_ack() argument
240 struct snd_tscm *tscm = substream->private_data; in pcm_capture_ack()
245 static int pcm_playback_ack(struct snd_pcm_substream *substream) in pcm_playback_ack() argument
247 struct snd_tscm *tscm = substream->private_data; in pcm_playback_ack()