Lines Matching refs:substream

30 	const struct snd_pcm_substream *substream)  in substream_to_prtd()  argument
32 return substream->runtime->private_data; in substream_to_prtd()
35 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan() argument
37 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan()
54 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config() argument
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hwparams_to_dma_slave_config()
107 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument
111 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_dmaengine_pcm_set_config_from_dai_data()
139 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local
140 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete()
142 new_pos = prtd->pos + snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete()
143 if (new_pos >= snd_pcm_lib_buffer_bytes(substream)) in dmaengine_pcm_dma_complete()
147 snd_pcm_period_elapsed(substream); in dmaengine_pcm_dma_complete()
150 static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream) in dmaengine_pcm_prepare_and_submit() argument
152 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_prepare_and_submit()
158 direction = snd_pcm_substream_to_dma_direction(substream); in dmaengine_pcm_prepare_and_submit()
160 if (!substream->runtime->no_period_wakeup) in dmaengine_pcm_prepare_and_submit()
165 substream->runtime->dma_addr, in dmaengine_pcm_prepare_and_submit()
166 snd_pcm_lib_buffer_bytes(substream), in dmaengine_pcm_prepare_and_submit()
167 snd_pcm_lib_period_bytes(substream), direction, flags); in dmaengine_pcm_prepare_and_submit()
173 desc->callback_param = substream; in dmaengine_pcm_prepare_and_submit()
189 int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_dmaengine_pcm_trigger() argument
191 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_trigger()
192 struct snd_pcm_runtime *runtime = substream->runtime; in snd_dmaengine_pcm_trigger()
197 ret = dmaengine_pcm_prepare_and_submit(substream); in snd_dmaengine_pcm_trigger()
235 snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_pointer_no_residue() argument
237 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_pointer_no_residue()
238 return bytes_to_frames(substream->runtime, prtd->pos); in snd_dmaengine_pcm_pointer_no_residue()
251 snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_pointer() argument
253 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_pointer()
254 struct snd_pcm_runtime *runtime = substream->runtime; in snd_dmaengine_pcm_pointer()
262 buf_size = snd_pcm_lib_buffer_bytes(substream); in snd_dmaengine_pcm_pointer()
307 int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_open() argument
316 ret = snd_pcm_hw_constraint_integer(substream->runtime, in snd_dmaengine_pcm_open()
327 substream->runtime->private_data = prtd; in snd_dmaengine_pcm_open()
333 int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_sync_stop() argument
335 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_sync_stop()
347 static void __snd_dmaengine_pcm_close(struct snd_pcm_substream *substream, in __snd_dmaengine_pcm_close() argument
350 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in __snd_dmaengine_pcm_close()
370 int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_close() argument
372 __snd_dmaengine_pcm_close(substream, false); in snd_dmaengine_pcm_close()
386 int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_close_release_chan() argument
388 __snd_dmaengine_pcm_close(substream, true); in snd_dmaengine_pcm_close_release_chan()
406 struct snd_pcm_substream *substream, in snd_dmaengine_pcm_refine_runtime_hwparams() argument
428 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_dmaengine_pcm_refine_runtime_hwparams()