Lines Matching refs:substream
523 static snd_pcm_uframes_t snd_usX2Y_pcm_pointer(struct snd_pcm_substream *substream) in snd_usX2Y_pcm_pointer() argument
525 struct snd_usX2Y_substream *subs = substream->runtime->private_data; in snd_usX2Y_pcm_pointer()
531 static int snd_usX2Y_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_usX2Y_pcm_trigger() argument
533 struct snd_usX2Y_substream *subs = substream->runtime->private_data; in snd_usX2Y_pcm_trigger()
743 static int snd_usX2Y_pcm_hw_params(struct snd_pcm_substream *substream, in snd_usX2Y_pcm_hw_params() argument
749 struct snd_card *card = substream->pstr->pcm->card; in snd_usX2Y_pcm_hw_params()
754 snd_printdd("snd_usX2Y_hw_params(%p, %p)\n", substream, hw_params); in snd_usX2Y_pcm_hw_params()
765 if (!test_substream || test_substream == substream || in snd_usX2Y_pcm_hw_params()
777 err = snd_pcm_lib_malloc_pages(substream, in snd_usX2Y_pcm_hw_params()
781 substream, params_buffer_bytes(hw_params), err); in snd_usX2Y_pcm_hw_params()
793 static int snd_usX2Y_pcm_hw_free(struct snd_pcm_substream *substream) in snd_usX2Y_pcm_hw_free() argument
795 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_pcm_hw_free()
798 snd_printdd("snd_usX2Y_hw_free(%p)\n", substream); in snd_usX2Y_pcm_hw_free()
800 if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) { in snd_usX2Y_pcm_hw_free()
819 return snd_pcm_lib_free_pages(substream); in snd_usX2Y_pcm_hw_free()
826 static int snd_usX2Y_pcm_prepare(struct snd_pcm_substream *substream) in snd_usX2Y_pcm_prepare() argument
828 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_pcm_prepare()
833 snd_printdd("snd_usX2Y_pcm_prepare(%p)\n", substream); in snd_usX2Y_pcm_prepare()
881 static int snd_usX2Y_pcm_open(struct snd_pcm_substream *substream) in snd_usX2Y_pcm_open() argument
884 snd_pcm_substream_chip(substream))[substream->stream]; in snd_usX2Y_pcm_open()
885 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_pcm_open()
892 subs->pcm_substream = substream; in snd_usX2Y_pcm_open()
899 static int snd_usX2Y_pcm_close(struct snd_pcm_substream *substream) in snd_usX2Y_pcm_close() argument
901 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_pcm_close()
982 0 > (err = snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, in usX2Y_audio_stream_new()
986 0 > (err = snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in usX2Y_audio_stream_new()