Lines Matching refs:substream
38 int __pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in __pxa2xx_pcm_hw_params() argument
41 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in __pxa2xx_pcm_hw_params()
42 struct snd_soc_pcm_runtime *rtd = substream->private_data; in __pxa2xx_pcm_hw_params()
47 dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in __pxa2xx_pcm_hw_params()
51 ret = snd_hwparams_to_dma_slave_config(substream, params, &config); in __pxa2xx_pcm_hw_params()
55 snd_dmaengine_pcm_set_config_from_dai_data(substream, in __pxa2xx_pcm_hw_params()
56 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream), in __pxa2xx_pcm_hw_params()
63 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in __pxa2xx_pcm_hw_params()
69 int __pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream) in __pxa2xx_pcm_hw_free() argument
71 snd_pcm_set_runtime_buffer(substream, NULL); in __pxa2xx_pcm_hw_free()
76 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in pxa2xx_pcm_trigger() argument
78 return snd_dmaengine_pcm_trigger(substream, cmd); in pxa2xx_pcm_trigger()
83 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) in pxa2xx_pcm_pointer() argument
85 return snd_dmaengine_pcm_pointer(substream); in pxa2xx_pcm_pointer()
89 int __pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) in __pxa2xx_pcm_prepare() argument
95 int __pxa2xx_pcm_open(struct snd_pcm_substream *substream) in __pxa2xx_pcm_open() argument
97 struct snd_soc_pcm_runtime *rtd = substream->private_data; in __pxa2xx_pcm_open()
98 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_open()
104 dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in __pxa2xx_pcm_open()
128 return snd_dmaengine_pcm_open_request_chan(substream, in __pxa2xx_pcm_open()
134 int __pxa2xx_pcm_close(struct snd_pcm_substream *substream) in __pxa2xx_pcm_close() argument
136 return snd_dmaengine_pcm_close_release_chan(substream); in __pxa2xx_pcm_close()
140 int pxa2xx_pcm_mmap(struct snd_pcm_substream *substream, in pxa2xx_pcm_mmap() argument
143 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_mmap()
144 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in pxa2xx_pcm_mmap()
153 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer() local
154 struct snd_dma_buffer *buf = &substream->dma_buffer; in pxa2xx_pcm_preallocate_dma_buffer()
170 struct snd_pcm_substream *substream; in pxa2xx_pcm_free_dma_buffers() local
175 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
176 if (!substream) in pxa2xx_pcm_free_dma_buffers()
178 buf = &substream->dma_buffer; in pxa2xx_pcm_free_dma_buffers()