• Home
  • Raw
  • Download

Lines Matching refs:substream

70 static void dma_enqueue(struct snd_pcm_substream *substream)  in dma_enqueue()  argument
72 struct runtime_data *prtd = substream->runtime->private_data; in dma_enqueue()
86 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK in dma_enqueue()
89 dma_info.fp_param = substream; in dma_enqueue()
116 struct snd_pcm_substream *substream = data; in audio_buffdone() local
117 struct runtime_data *prtd = substream->runtime->private_data; in audio_buffdone()
126 if (substream) in audio_buffdone()
127 snd_pcm_period_elapsed(substream); in audio_buffdone()
132 dma_enqueue(substream); in audio_buffdone()
138 static int dma_hw_params(struct snd_pcm_substream *substream, in dma_hw_params() argument
141 struct snd_pcm_runtime *runtime = substream->runtime; in dma_hw_params()
143 struct snd_soc_pcm_runtime *rtd = substream->private_data; in dma_hw_params()
146 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in dma_hw_params()
172 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK in dma_hw_params()
182 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in dma_hw_params()
197 static int dma_hw_free(struct snd_pcm_substream *substream) in dma_hw_free() argument
199 struct runtime_data *prtd = substream->runtime->private_data; in dma_hw_free()
203 snd_pcm_set_runtime_buffer(substream, NULL); in dma_hw_free()
215 static int dma_prepare(struct snd_pcm_substream *substream) in dma_prepare() argument
217 struct runtime_data *prtd = substream->runtime->private_data; in dma_prepare()
234 dma_enqueue(substream); in dma_prepare()
239 static int dma_trigger(struct snd_pcm_substream *substream, int cmd) in dma_trigger() argument
241 struct runtime_data *prtd = substream->runtime->private_data; in dma_trigger()
270 dma_pointer(struct snd_pcm_substream *substream) in dma_pointer() argument
272 struct snd_pcm_runtime *runtime = substream->runtime; in dma_pointer()
288 if (res >= snd_pcm_lib_buffer_bytes(substream)) { in dma_pointer()
289 if (res == snd_pcm_lib_buffer_bytes(substream)) in dma_pointer()
293 return bytes_to_frames(substream->runtime, res); in dma_pointer()
296 static int dma_open(struct snd_pcm_substream *substream) in dma_open() argument
298 struct snd_pcm_runtime *runtime = substream->runtime; in dma_open()
304 snd_soc_set_runtime_hwparams(substream, &dma_hardware); in dma_open()
316 static int dma_close(struct snd_pcm_substream *substream) in dma_close() argument
318 struct snd_pcm_runtime *runtime = substream->runtime; in dma_close()
331 static int dma_mmap(struct snd_pcm_substream *substream, in dma_mmap() argument
334 struct snd_pcm_runtime *runtime = substream->runtime; in dma_mmap()
338 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in dma_mmap()
358 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in preallocate_dma_buffer() local
359 struct snd_dma_buffer *buf = &substream->dma_buffer; in preallocate_dma_buffer()
377 struct snd_pcm_substream *substream; in dma_free_dma_buffers() local
384 substream = pcm->streams[stream].substream; in dma_free_dma_buffers()
385 if (!substream) in dma_free_dma_buffers()
388 buf = &substream->dma_buffer; in dma_free_dma_buffers()
413 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in dma_new()
420 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in dma_new()