Lines Matching refs:substream

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