Lines Matching refs:substream
110 struct snd_pcm_substream *substream) in pcm_init_hw_params() argument
112 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params()
124 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params()
155 pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument
157 struct snd_bebob *bebob = substream->private_data; in pcm_open()
167 err = pcm_init_hw_params(bebob, substream); in pcm_open()
189 substream->runtime->hw.rate_min = sampling_rate; in pcm_open()
190 substream->runtime->hw.rate_max = sampling_rate; in pcm_open()
193 snd_pcm_set_sync(substream); in pcm_open()
202 pcm_close(struct snd_pcm_substream *substream) in pcm_close() argument
204 struct snd_bebob *bebob = substream->private_data; in pcm_close()
210 pcm_capture_hw_params(struct snd_pcm_substream *substream, in pcm_capture_hw_params() argument
213 struct snd_bebob *bebob = substream->private_data; in pcm_capture_hw_params()
215 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_params()
219 return snd_pcm_lib_alloc_vmalloc_buffer(substream, in pcm_capture_hw_params()
223 pcm_playback_hw_params(struct snd_pcm_substream *substream, in pcm_playback_hw_params() argument
226 struct snd_bebob *bebob = substream->private_data; in pcm_playback_hw_params()
228 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_params()
232 return snd_pcm_lib_alloc_vmalloc_buffer(substream, in pcm_playback_hw_params()
237 pcm_capture_hw_free(struct snd_pcm_substream *substream) in pcm_capture_hw_free() argument
239 struct snd_bebob *bebob = substream->private_data; in pcm_capture_hw_free()
241 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
246 return snd_pcm_lib_free_vmalloc_buffer(substream); in pcm_capture_hw_free()
249 pcm_playback_hw_free(struct snd_pcm_substream *substream) in pcm_playback_hw_free() argument
251 struct snd_bebob *bebob = substream->private_data; in pcm_playback_hw_free()
253 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
258 return snd_pcm_lib_free_vmalloc_buffer(substream); in pcm_playback_hw_free()
262 pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare() argument
264 struct snd_bebob *bebob = substream->private_data; in pcm_capture_prepare()
265 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare()
275 pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare() argument
277 struct snd_bebob *bebob = substream->private_data; in pcm_playback_prepare()
278 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare()
289 pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger() argument
291 struct snd_bebob *bebob = substream->private_data; in pcm_capture_trigger()
295 amdtp_stream_pcm_trigger(&bebob->tx_stream, substream); in pcm_capture_trigger()
307 pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger() argument
309 struct snd_bebob *bebob = substream->private_data; in pcm_playback_trigger()
313 amdtp_stream_pcm_trigger(&bebob->rx_stream, substream); in pcm_playback_trigger()