Lines Matching refs:substream
32 int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in pxa2xx_pcm_hw_params() argument
35 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in pxa2xx_pcm_hw_params()
36 struct snd_soc_pcm_runtime *rtd = substream->private_data; in pxa2xx_pcm_hw_params()
41 dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in pxa2xx_pcm_hw_params()
45 ret = snd_hwparams_to_dma_slave_config(substream, params, &config); in pxa2xx_pcm_hw_params()
49 snd_dmaengine_pcm_set_config_from_dai_data(substream, in pxa2xx_pcm_hw_params()
50 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream), in pxa2xx_pcm_hw_params()
57 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in pxa2xx_pcm_hw_params()
63 int pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream) in pxa2xx_pcm_hw_free() argument
65 snd_pcm_set_runtime_buffer(substream, NULL); in pxa2xx_pcm_hw_free()
70 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in pxa2xx_pcm_trigger() argument
72 return snd_dmaengine_pcm_trigger(substream, cmd); in pxa2xx_pcm_trigger()
77 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) in pxa2xx_pcm_pointer() argument
79 return snd_dmaengine_pcm_pointer(substream); in pxa2xx_pcm_pointer()
83 int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) in pxa2xx_pcm_prepare() argument
89 int pxa2xx_pcm_open(struct snd_pcm_substream *substream) in pxa2xx_pcm_open() argument
91 struct snd_soc_pcm_runtime *rtd = substream->private_data; in pxa2xx_pcm_open()
92 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_open()
98 dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in pxa2xx_pcm_open()
123 substream, dma_request_slave_channel(rtd->cpu_dai->dev, in pxa2xx_pcm_open()
128 int pxa2xx_pcm_close(struct snd_pcm_substream *substream) in pxa2xx_pcm_close() argument
130 return snd_dmaengine_pcm_close_release_chan(substream); in pxa2xx_pcm_close()
134 int pxa2xx_pcm_mmap(struct snd_pcm_substream *substream, in pxa2xx_pcm_mmap() argument
137 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_mmap()
138 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in pxa2xx_pcm_mmap()
145 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer() local
146 struct snd_dma_buffer *buf = &substream->dma_buffer; in pxa2xx_pcm_preallocate_dma_buffer()
161 struct snd_pcm_substream *substream; in pxa2xx_pcm_free_dma_buffers() local
166 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
167 if (!substream) in pxa2xx_pcm_free_dma_buffers()
169 buf = &substream->dma_buffer; in pxa2xx_pcm_free_dma_buffers()
188 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in pxa2xx_soc_pcm_new()
195 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in pxa2xx_soc_pcm_new()