Lines Matching refs:substream

71 static int idma_enqueue(struct snd_pcm_substream *substream)  in idma_enqueue()  argument
73 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue()
74 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
78 prtd->token = (void *) substream; in idma_enqueue()
106 static void idma_setcallbk(struct snd_pcm_substream *substream, in idma_setcallbk() argument
109 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
140 struct snd_pcm_substream *substream = id; in idma_done() local
141 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done()
144 snd_pcm_period_elapsed(substream); in idma_done()
147 static int idma_hw_params(struct snd_pcm_substream *substream, in idma_hw_params() argument
150 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params()
151 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params()
160 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in idma_hw_params()
168 idma_setcallbk(substream, idma_done); in idma_hw_params()
173 static int idma_hw_free(struct snd_pcm_substream *substream) in idma_hw_free() argument
175 snd_pcm_set_runtime_buffer(substream, NULL); in idma_hw_free()
180 static int idma_prepare(struct snd_pcm_substream *substream) in idma_prepare() argument
182 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_prepare()
188 idma_enqueue(substream); in idma_prepare()
193 static int idma_trigger(struct snd_pcm_substream *substream, int cmd) in idma_trigger() argument
195 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_trigger()
226 idma_pointer(struct snd_pcm_substream *substream) in idma_pointer() argument
228 struct snd_pcm_runtime *runtime = substream->runtime; in idma_pointer()
240 return bytes_to_frames(substream->runtime, res); in idma_pointer()
243 static int idma_mmap(struct snd_pcm_substream *substream, in idma_mmap() argument
246 struct snd_pcm_runtime *runtime = substream->runtime; in idma_mmap()
288 static int idma_open(struct snd_pcm_substream *substream) in idma_open() argument
290 struct snd_pcm_runtime *runtime = substream->runtime; in idma_open()
294 snd_soc_set_runtime_hwparams(substream, &idma_hardware); in idma_open()
314 static int idma_close(struct snd_pcm_substream *substream) in idma_close() argument
316 struct snd_pcm_runtime *runtime = substream->runtime; in idma_close()
343 struct snd_pcm_substream *substream; in idma_free() local
346 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in idma_free()
347 if (!substream) in idma_free()
350 buf = &substream->dma_buffer; in idma_free()
362 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in preallocate_idma_buffer() local
363 struct snd_dma_buffer *buf = &substream->dma_buffer; in preallocate_idma_buffer()
387 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in idma_new()