Lines Matching defs:substream

71 		   struct snd_pcm_substream *substream)
73 struct snd_soc_pcm_runtime *rtd = substream->private_data;
82 dmap = snd_soc_dai_get_dma_data(cpu_dai, substream);
85 snd_soc_set_runtime_hwparams(substream, &tegra_pcm_hardware);
88 ret = snd_pcm_hw_constraint_step(substream->runtime, 0,
103 ret = snd_dmaengine_pcm_open(substream, chan);
119 struct snd_pcm_substream *substream)
121 struct snd_soc_pcm_runtime *rtd = substream->private_data;
126 snd_dmaengine_pcm_close_release_chan(substream);
133 struct snd_pcm_substream *substream,
136 struct snd_soc_pcm_runtime *rtd = substream->private_data;
145 dmap = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
149 chan = snd_dmaengine_pcm_get_chan(substream);
151 ret = snd_hwparams_to_dma_slave_config(substream, params,
158 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
174 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
181 struct snd_pcm_substream *substream)
183 struct snd_soc_pcm_runtime *rtd = substream->private_data;
188 snd_pcm_set_runtime_buffer(substream, NULL);
195 struct snd_pcm_substream *substream,
198 struct snd_soc_pcm_runtime *rtd = substream->private_data;
199 struct snd_pcm_runtime *runtime = substream->runtime;
204 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
210 struct snd_pcm_substream *substream)
212 return snd_dmaengine_pcm_pointer(substream);
219 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
220 struct snd_dma_buffer *buf = &substream->dma_buffer;
236 struct snd_pcm_substream *substream;
239 substream = pcm->streams[stream].substream;
240 if (!substream)
243 buf = &substream->dma_buffer;
266 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
273 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {