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()
216 err = snd_pcm_lib_alloc_vmalloc_buffer(substream, in pcm_capture_hw_params()
221 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_params()
229 pcm_playback_hw_params(struct snd_pcm_substream *substream, in pcm_playback_hw_params() argument
232 struct snd_bebob *bebob = substream->private_data; in pcm_playback_hw_params()
235 err = snd_pcm_lib_alloc_vmalloc_buffer(substream, in pcm_playback_hw_params()
240 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_params()
249 pcm_capture_hw_free(struct snd_pcm_substream *substream) in pcm_capture_hw_free() argument
251 struct snd_bebob *bebob = substream->private_data; in pcm_capture_hw_free()
253 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
258 return snd_pcm_lib_free_vmalloc_buffer(substream); in pcm_capture_hw_free()
261 pcm_playback_hw_free(struct snd_pcm_substream *substream) in pcm_playback_hw_free() argument
263 struct snd_bebob *bebob = substream->private_data; in pcm_playback_hw_free()
265 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
270 return snd_pcm_lib_free_vmalloc_buffer(substream); in pcm_playback_hw_free()
274 pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare() argument
276 struct snd_bebob *bebob = substream->private_data; in pcm_capture_prepare()
277 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare()
287 pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare() argument
289 struct snd_bebob *bebob = substream->private_data; in pcm_playback_prepare()
290 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare()
301 pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger() argument
303 struct snd_bebob *bebob = substream->private_data; in pcm_capture_trigger()
307 amdtp_stream_pcm_trigger(&bebob->tx_stream, substream); in pcm_capture_trigger()
319 pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger() argument
321 struct snd_bebob *bebob = substream->private_data; in pcm_playback_trigger()
325 amdtp_stream_pcm_trigger(&bebob->rx_stream, substream); in pcm_playback_trigger()