Lines Matching refs:substream

32 int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
35 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream);
36 struct snd_soc_pcm_runtime *rtd = substream->private_data;
41 dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
45 ret = snd_hwparams_to_dma_slave_config(substream, params, &config);
49 snd_dmaengine_pcm_set_config_from_dai_data(substream,
50 snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream),
61 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
63 return snd_dmaengine_pcm_trigger(substream, cmd);
68 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream)
70 return snd_dmaengine_pcm_pointer(substream);
74 int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream)
80 int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
82 struct snd_soc_pcm_runtime *rtd = substream->private_data;
83 struct snd_pcm_runtime *runtime = substream->runtime;
89 dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
114 substream, dma_request_slave_channel(snd_soc_rtd_to_cpu(rtd, 0)->dev,
119 int pxa2xx_pcm_close(struct snd_pcm_substream *substream)
121 return snd_dmaengine_pcm_close_release_chan(substream);
150 struct snd_pcm_substream *substream)
152 return pxa2xx_pcm_open(substream);
157 struct snd_pcm_substream *substream)
159 return pxa2xx_pcm_close(substream);
164 struct snd_pcm_substream *substream,
167 return pxa2xx_pcm_hw_params(substream, params);
172 struct snd_pcm_substream *substream)
174 return pxa2xx_pcm_prepare(substream);
179 struct snd_pcm_substream *substream, int cmd)
181 return pxa2xx_pcm_trigger(substream, cmd);
187 struct snd_pcm_substream *substream)
189 return pxa2xx_pcm_pointer(substream);