Lines Matching refs:substream

214 	return !!io->substream;  in rsnd_io_is_working()
383 struct snd_pcm_substream *substream = io->substream; in rsnd_dai_pointer_offset() local
384 struct snd_pcm_runtime *runtime = substream->runtime; in rsnd_dai_pointer_offset()
397 struct snd_pcm_substream *substream = io->substream; in rsnd_dai_pointer_update() local
398 struct snd_pcm_runtime *runtime = substream->runtime; in rsnd_dai_pointer_update()
417 struct snd_pcm_substream *substream = io->substream; in rsnd_dai_period_elapsed() local
426 snd_pcm_period_elapsed(substream); in rsnd_dai_period_elapsed()
430 struct snd_pcm_substream *substream) in rsnd_dai_stream_init() argument
432 struct snd_pcm_runtime *runtime = substream->runtime; in rsnd_dai_stream_init()
434 io->substream = substream; in rsnd_dai_stream_init()
445 io->substream = NULL; in rsnd_dai_stream_quit()
449 struct snd_soc_dai *rsnd_substream_to_dai(struct snd_pcm_substream *substream) in rsnd_substream_to_dai() argument
451 struct snd_soc_pcm_runtime *rtd = substream->private_data; in rsnd_substream_to_dai()
458 struct snd_pcm_substream *substream) in rsnd_rdai_to_io() argument
460 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in rsnd_rdai_to_io()
466 static int rsnd_soc_dai_trigger(struct snd_pcm_substream *substream, int cmd, in rsnd_soc_dai_trigger() argument
471 struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); in rsnd_soc_dai_trigger()
480 rsnd_dai_stream_init(io, substream); in rsnd_soc_dai_trigger()
913 static int rsnd_pcm_open(struct snd_pcm_substream *substream) in rsnd_pcm_open() argument
915 struct snd_pcm_runtime *runtime = substream->runtime; in rsnd_pcm_open()
918 snd_soc_set_runtime_hwparams(substream, &rsnd_pcm_hardware); in rsnd_pcm_open()
926 static int rsnd_hw_params(struct snd_pcm_substream *substream, in rsnd_hw_params() argument
929 struct snd_soc_dai *dai = rsnd_substream_to_dai(substream); in rsnd_hw_params()
931 struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); in rsnd_hw_params()
934 ret = rsnd_dai_call(hw_params, io, substream, hw_params); in rsnd_hw_params()
938 return snd_pcm_lib_malloc_pages(substream, in rsnd_hw_params()
942 static snd_pcm_uframes_t rsnd_pointer(struct snd_pcm_substream *substream) in rsnd_pointer() argument
944 struct snd_pcm_runtime *runtime = substream->runtime; in rsnd_pointer()
945 struct snd_soc_dai *dai = rsnd_substream_to_dai(substream); in rsnd_pointer()
947 struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); in rsnd_pointer()