Lines Matching refs:substream
567 static int snd_amd7930_playback_trigger(struct snd_pcm_substream *substream, in snd_amd7930_playback_trigger() argument
570 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_playback_trigger()
574 static int snd_amd7930_capture_trigger(struct snd_pcm_substream *substream, in snd_amd7930_capture_trigger() argument
577 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_capture_trigger()
581 static int snd_amd7930_playback_prepare(struct snd_pcm_substream *substream) in snd_amd7930_playback_prepare() argument
583 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_playback_prepare()
584 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_playback_prepare()
585 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_amd7930_playback_prepare()
613 static int snd_amd7930_capture_prepare(struct snd_pcm_substream *substream) in snd_amd7930_capture_prepare() argument
615 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_capture_prepare()
616 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_capture_prepare()
617 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_amd7930_capture_prepare()
645 static snd_pcm_uframes_t snd_amd7930_playback_pointer(struct snd_pcm_substream *substream) in snd_amd7930_playback_pointer() argument
647 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_playback_pointer()
653 return bytes_to_frames(substream->runtime, ptr); in snd_amd7930_playback_pointer()
656 static snd_pcm_uframes_t snd_amd7930_capture_pointer(struct snd_pcm_substream *substream) in snd_amd7930_capture_pointer() argument
658 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_capture_pointer()
665 return bytes_to_frames(substream->runtime, ptr); in snd_amd7930_capture_pointer()
689 static int snd_amd7930_playback_open(struct snd_pcm_substream *substream) in snd_amd7930_playback_open() argument
691 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_playback_open()
692 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_playback_open()
694 amd->playback_substream = substream; in snd_amd7930_playback_open()
699 static int snd_amd7930_capture_open(struct snd_pcm_substream *substream) in snd_amd7930_capture_open() argument
701 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_capture_open()
702 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_capture_open()
704 amd->capture_substream = substream; in snd_amd7930_capture_open()
709 static int snd_amd7930_playback_close(struct snd_pcm_substream *substream) in snd_amd7930_playback_close() argument
711 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_playback_close()
717 static int snd_amd7930_capture_close(struct snd_pcm_substream *substream) in snd_amd7930_capture_close() argument
719 struct snd_amd7930 *amd = snd_pcm_substream_chip(substream); in snd_amd7930_capture_close()
725 static int snd_amd7930_hw_params(struct snd_pcm_substream *substream, in snd_amd7930_hw_params() argument
728 return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params)); in snd_amd7930_hw_params()
731 static int snd_amd7930_hw_free(struct snd_pcm_substream *substream) in snd_amd7930_hw_free() argument
733 return snd_pcm_lib_free_pages(substream); in snd_amd7930_hw_free()