Lines Matching refs:substream
247 static int snd_sb16_hw_params(struct snd_pcm_substream *substream, in snd_sb16_hw_params() argument
250 return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params)); in snd_sb16_hw_params()
253 static int snd_sb16_hw_free(struct snd_pcm_substream *substream) in snd_sb16_hw_free() argument
255 snd_pcm_lib_free_pages(substream); in snd_sb16_hw_free()
259 static int snd_sb16_playback_prepare(struct snd_pcm_substream *substream) in snd_sb16_playback_prepare() argument
262 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_playback_prepare()
263 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb16_playback_prepare()
275 size = chip->p_dma_size = snd_pcm_lib_buffer_bytes(substream); in snd_sb16_playback_prepare()
279 count = snd_pcm_lib_period_bytes(substream); in snd_sb16_playback_prepare()
301 static int snd_sb16_playback_trigger(struct snd_pcm_substream *substream, in snd_sb16_playback_trigger() argument
304 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_playback_trigger()
329 static int snd_sb16_capture_prepare(struct snd_pcm_substream *substream) in snd_sb16_capture_prepare() argument
332 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_capture_prepare()
333 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb16_capture_prepare()
344 size = chip->c_dma_size = snd_pcm_lib_buffer_bytes(substream); in snd_sb16_capture_prepare()
348 count = snd_pcm_lib_period_bytes(substream); in snd_sb16_capture_prepare()
370 static int snd_sb16_capture_trigger(struct snd_pcm_substream *substream, in snd_sb16_capture_trigger() argument
373 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_capture_trigger()
450 static snd_pcm_uframes_t snd_sb16_playback_pointer(struct snd_pcm_substream *substream) in snd_sb16_playback_pointer() argument
452 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_playback_pointer()
458 return bytes_to_frames(substream->runtime, ptr); in snd_sb16_playback_pointer()
461 static snd_pcm_uframes_t snd_sb16_capture_pointer(struct snd_pcm_substream *substream) in snd_sb16_capture_pointer() argument
463 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_capture_pointer()
469 return bytes_to_frames(substream->runtime, ptr); in snd_sb16_capture_pointer()
516 static int snd_sb16_playback_open(struct snd_pcm_substream *substream) in snd_sb16_playback_open() argument
519 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_playback_open()
520 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb16_playback_open()
573 chip->playback_substream = substream; in snd_sb16_playback_open()
578 static int snd_sb16_playback_close(struct snd_pcm_substream *substream) in snd_sb16_playback_close() argument
581 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_playback_close()
591 static int snd_sb16_capture_open(struct snd_pcm_substream *substream) in snd_sb16_capture_open() argument
594 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_capture_open()
595 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb16_capture_open()
648 chip->capture_substream = substream; in snd_sb16_capture_open()
653 static int snd_sb16_capture_close(struct snd_pcm_substream *substream) in snd_sb16_capture_close() argument
656 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb16_capture_close()