Lines Matching refs:substream

39 int __pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,  in __pxa2xx_pcm_hw_params()  argument
42 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_hw_params()
78 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in __pxa2xx_pcm_hw_params()
87 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in __pxa2xx_pcm_hw_params()
106 int __pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream) in __pxa2xx_pcm_hw_free() argument
108 struct pxa2xx_runtime_data *rtd = substream->runtime->private_data; in __pxa2xx_pcm_hw_free()
115 snd_pcm_set_runtime_buffer(substream, NULL); in __pxa2xx_pcm_hw_free()
120 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in pxa2xx_pcm_trigger() argument
122 struct pxa2xx_runtime_data *prtd = substream->runtime->private_data; in pxa2xx_pcm_trigger()
154 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) in pxa2xx_pcm_pointer() argument
156 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_pointer()
159 dma_addr_t ptr = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in pxa2xx_pcm_pointer()
169 int __pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) in __pxa2xx_pcm_prepare() argument
171 struct pxa2xx_runtime_data *prtd = substream->runtime->private_data; in __pxa2xx_pcm_prepare()
192 struct snd_pcm_substream *substream = dev_id; in pxa2xx_pcm_dma_irq() local
199 snd_pcm_period_elapsed(substream); in pxa2xx_pcm_dma_irq()
203 snd_pcm_stop_xrun(substream); in pxa2xx_pcm_dma_irq()
208 int __pxa2xx_pcm_open(struct snd_pcm_substream *substream) in __pxa2xx_pcm_open() argument
210 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_open()
241 dma_alloc_writecombine(substream->pcm->card->dev, PAGE_SIZE, in __pxa2xx_pcm_open()
257 int __pxa2xx_pcm_close(struct snd_pcm_substream *substream) in __pxa2xx_pcm_close() argument
259 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_close()
262 dma_free_writecombine(substream->pcm->card->dev, PAGE_SIZE, in __pxa2xx_pcm_close()
269 int pxa2xx_pcm_mmap(struct snd_pcm_substream *substream, in pxa2xx_pcm_mmap() argument
272 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_mmap()
273 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in pxa2xx_pcm_mmap()
282 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer() local
283 struct snd_dma_buffer *buf = &substream->dma_buffer; in pxa2xx_pcm_preallocate_dma_buffer()
299 struct snd_pcm_substream *substream; in pxa2xx_pcm_free_dma_buffers() local
304 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
305 if (!substream) in pxa2xx_pcm_free_dma_buffers()
307 buf = &substream->dma_buffer; in pxa2xx_pcm_free_dma_buffers()