• Home
  • Raw
  • Download

Lines Matching refs:substream

39 	const struct snd_pcm_substream *substream)  in substream_to_prtd()  argument
41 return substream->runtime->private_data; in substream_to_prtd()
44 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan() argument
46 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan()
61 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config() argument
84 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hwparams_to_dma_slave_config()
115 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument
119 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_dmaengine_pcm_set_config_from_dai_data()
137 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local
138 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete()
140 prtd->pos += snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete()
141 if (prtd->pos >= snd_pcm_lib_buffer_bytes(substream)) in dmaengine_pcm_dma_complete()
144 snd_pcm_period_elapsed(substream); in dmaengine_pcm_dma_complete()
147 static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream) in dmaengine_pcm_prepare_and_submit() argument
149 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_prepare_and_submit()
155 direction = snd_pcm_substream_to_dma_direction(substream); in dmaengine_pcm_prepare_and_submit()
157 if (!substream->runtime->no_period_wakeup) in dmaengine_pcm_prepare_and_submit()
162 substream->runtime->dma_addr, in dmaengine_pcm_prepare_and_submit()
163 snd_pcm_lib_buffer_bytes(substream), in dmaengine_pcm_prepare_and_submit()
164 snd_pcm_lib_period_bytes(substream), direction, flags); in dmaengine_pcm_prepare_and_submit()
170 desc->callback_param = substream; in dmaengine_pcm_prepare_and_submit()
186 int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_dmaengine_pcm_trigger() argument
188 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_trigger()
193 ret = dmaengine_pcm_prepare_and_submit(substream); in snd_dmaengine_pcm_trigger()
224 snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_pointer_no_residue() argument
226 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_pointer_no_residue()
227 return bytes_to_frames(substream->runtime, prtd->pos); in snd_dmaengine_pcm_pointer_no_residue()
238 snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_pointer() argument
240 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_pointer()
248 buf_size = snd_pcm_lib_buffer_bytes(substream); in snd_dmaengine_pcm_pointer()
253 return bytes_to_frames(substream->runtime, pos); in snd_dmaengine_pcm_pointer()
290 int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_open() argument
299 ret = snd_pcm_hw_constraint_integer(substream->runtime, in snd_dmaengine_pcm_open()
310 substream->runtime->private_data = prtd; in snd_dmaengine_pcm_open()
329 int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_open_request_chan() argument
332 return snd_dmaengine_pcm_open(substream, in snd_dmaengine_pcm_open_request_chan()
341 int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_close() argument
343 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_close()
357 int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_close_release_chan() argument
359 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_close_release_chan()
363 return snd_dmaengine_pcm_close(substream); in snd_dmaengine_pcm_close_release_chan()