Lines Matching refs:substream
48 struct snd_pcm_substream *substream; member
117 snd_pcm_period_elapsed(cd->substream); in au1x_pcm_dmatx_cb()
130 snd_pcm_period_elapsed(cd->substream); in au1x_pcm_dmarx_cb()
195 static int au1xpsc_pcm_hw_params(struct snd_pcm_substream *substream, in au1xpsc_pcm_hw_params() argument
198 struct snd_pcm_runtime *runtime = substream->runtime; in au1xpsc_pcm_hw_params()
202 ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); in au1xpsc_pcm_hw_params()
206 stype = substream->stream; in au1xpsc_pcm_hw_params()
207 pcd = to_dmadata(substream); in au1xpsc_pcm_hw_params()
224 pcd->substream = substream; in au1xpsc_pcm_hw_params()
237 static int au1xpsc_pcm_hw_free(struct snd_pcm_substream *substream) in au1xpsc_pcm_hw_free() argument
239 snd_pcm_lib_free_pages(substream); in au1xpsc_pcm_hw_free()
243 static int au1xpsc_pcm_prepare(struct snd_pcm_substream *substream) in au1xpsc_pcm_prepare() argument
245 struct au1xpsc_audio_dmadata *pcd = to_dmadata(substream); in au1xpsc_pcm_prepare()
249 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in au1xpsc_pcm_prepare()
260 static int au1xpsc_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in au1xpsc_pcm_trigger() argument
262 u32 c = to_dmadata(substream)->ddma_chan; in au1xpsc_pcm_trigger()
280 au1xpsc_pcm_pointer(struct snd_pcm_substream *substream) in au1xpsc_pcm_pointer() argument
282 return bytes_to_frames(substream->runtime, to_dmadata(substream)->pos); in au1xpsc_pcm_pointer()
285 static int au1xpsc_pcm_open(struct snd_pcm_substream *substream) in au1xpsc_pcm_open() argument
287 struct au1xpsc_audio_dmadata *pcd = to_dmadata(substream); in au1xpsc_pcm_open()
288 struct snd_soc_pcm_runtime *rtd = substream->private_data; in au1xpsc_pcm_open()
289 int stype = substream->stream, *dmaids; in au1xpsc_pcm_open()
291 dmaids = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in au1xpsc_pcm_open()
297 snd_soc_set_runtime_hwparams(substream, &au1xpsc_pcm_hardware); in au1xpsc_pcm_open()
301 static int au1xpsc_pcm_close(struct snd_pcm_substream *substream) in au1xpsc_pcm_close() argument
303 au1x_pcm_dbdma_free(to_dmadata(substream)); in au1xpsc_pcm_close()