Lines Matching refs:substream

61 static int mmp_pcm_hw_params(struct snd_pcm_substream *substream,  in mmp_pcm_hw_params()  argument
64 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in mmp_pcm_hw_params()
69 snd_dmaengine_pcm_prepare_slave_config(substream, params, in mmp_pcm_hw_params()
78 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in mmp_pcm_hw_params()
100 static int mmp_pcm_open(struct snd_pcm_substream *substream) in mmp_pcm_open() argument
102 struct snd_soc_pcm_runtime *rtd = substream->private_data; in mmp_pcm_open()
108 r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream); in mmp_pcm_open()
112 snd_soc_set_runtime_hwparams(substream, in mmp_pcm_open()
113 &mmp_pcm_hardware[substream->stream]); in mmp_pcm_open()
118 return snd_dmaengine_pcm_open_request_chan(substream, filter, in mmp_pcm_open()
122 static int mmp_pcm_mmap(struct snd_pcm_substream *substream, in mmp_pcm_mmap() argument
125 struct snd_pcm_runtime *runtime = substream->runtime; in mmp_pcm_mmap()
146 struct snd_pcm_substream *substream; in mmp_pcm_free_dma_buffers() local
158 substream = pcm->streams[stream].substream; in mmp_pcm_free_dma_buffers()
159 if (!substream) in mmp_pcm_free_dma_buffers()
162 buf = &substream->dma_buffer; in mmp_pcm_free_dma_buffers()
172 static int mmp_pcm_preallocate_dma_buffer(struct snd_pcm_substream *substream, in mmp_pcm_preallocate_dma_buffer() argument
175 struct snd_dma_buffer *buf = &substream->dma_buffer; in mmp_pcm_preallocate_dma_buffer()
180 buf->dev.dev = substream->pcm->card->dev; in mmp_pcm_preallocate_dma_buffer()
196 struct snd_pcm_substream *substream; in mmp_pcm_new() local
201 substream = pcm->streams[stream].substream; in mmp_pcm_new()
203 ret = mmp_pcm_preallocate_dma_buffer(substream, stream); in mmp_pcm_new()