Lines Matching refs:substream
53 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in atmel_pcm_preallocate_dma_buffer() local
54 struct snd_dma_buffer *buf = &substream->dma_buffer; in atmel_pcm_preallocate_dma_buffer()
72 static int atmel_pcm_mmap(struct snd_pcm_substream *substream, in atmel_pcm_mmap() argument
76 substream->dma_buffer.addr >> PAGE_SHIFT, in atmel_pcm_mmap()
90 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in atmel_pcm_new()
98 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in atmel_pcm_new()
111 struct snd_pcm_substream *substream; in atmel_pcm_free() local
116 substream = pcm->streams[stream].substream; in atmel_pcm_free()
117 if (!substream) in atmel_pcm_free()
120 buf = &substream->dma_buffer; in atmel_pcm_free()
164 struct snd_pcm_substream *substream) in atmel_pcm_dma_irq() argument
166 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_dma_irq()
174 substream->stream == SNDRV_PCM_STREAM_PLAYBACK in atmel_pcm_dma_irq()
205 snd_pcm_period_elapsed(substream); in atmel_pcm_dma_irq()
212 static int atmel_pcm_hw_params(struct snd_pcm_substream *substream, in atmel_pcm_hw_params() argument
215 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_pcm_hw_params()
217 struct snd_soc_pcm_runtime *rtd = substream->private_data; in atmel_pcm_hw_params()
222 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in atmel_pcm_hw_params()
225 prtd->params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in atmel_pcm_hw_params()
241 static int atmel_pcm_hw_free(struct snd_pcm_substream *substream) in atmel_pcm_hw_free() argument
243 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_hw_free()
255 static int atmel_pcm_prepare(struct snd_pcm_substream *substream) in atmel_pcm_prepare() argument
257 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_prepare()
267 static int atmel_pcm_trigger(struct snd_pcm_substream *substream, in atmel_pcm_trigger() argument
270 struct snd_pcm_runtime *rtd = substream->runtime; in atmel_pcm_trigger()
334 struct snd_pcm_substream *substream) in atmel_pcm_pointer() argument
336 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_pcm_pointer()
351 static int atmel_pcm_open(struct snd_pcm_substream *substream) in atmel_pcm_open() argument
353 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_pcm_open()
357 snd_soc_set_runtime_hwparams(substream, &atmel_pcm_hardware); in atmel_pcm_open()
376 static int atmel_pcm_close(struct snd_pcm_substream *substream) in atmel_pcm_close() argument
378 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_close()