Lines Matching refs:substream

128 	struct snd_pcm_substream *substream;  member
279 struct snd_pcm_substream *substream; in snd_dw_hdmi_irq() local
288 substream = dw->substream; in snd_dw_hdmi_irq()
289 if (stat & HDMI_IH_AHBDMAAUD_STAT0_DONE && substream) { in snd_dw_hdmi_irq()
290 snd_pcm_period_elapsed(substream); in snd_dw_hdmi_irq()
293 if (dw->substream) in snd_dw_hdmi_irq()
325 static int dw_hdmi_open(struct snd_pcm_substream *substream) in dw_hdmi_open() argument
327 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open()
328 struct snd_dw_hdmi *dw = substream->private_data; in dw_hdmi_open()
350 0, substream->dma_buffer.bytes); in dw_hdmi_open()
379 static int dw_hdmi_close(struct snd_pcm_substream *substream) in dw_hdmi_close() argument
381 struct snd_dw_hdmi *dw = substream->private_data; in dw_hdmi_close()
392 static int dw_hdmi_hw_free(struct snd_pcm_substream *substream) in dw_hdmi_hw_free() argument
394 return snd_pcm_lib_free_vmalloc_buffer(substream); in dw_hdmi_hw_free()
397 static int dw_hdmi_hw_params(struct snd_pcm_substream *substream, in dw_hdmi_hw_params() argument
401 return snd_pcm_lib_alloc_vmalloc_buffer(substream, in dw_hdmi_hw_params()
405 static int dw_hdmi_prepare(struct snd_pcm_substream *substream) in dw_hdmi_prepare() argument
407 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_prepare()
408 struct snd_dw_hdmi *dw = substream->private_data; in dw_hdmi_prepare()
467 dw->buf_dst = substream->dma_buffer.area; in dw_hdmi_prepare()
468 dw->buf_addr = substream->dma_buffer.addr; in dw_hdmi_prepare()
469 dw->buf_period = snd_pcm_lib_period_bytes(substream); in dw_hdmi_prepare()
470 dw->buf_size = snd_pcm_lib_buffer_bytes(substream); in dw_hdmi_prepare()
475 static int dw_hdmi_trigger(struct snd_pcm_substream *substream, int cmd) in dw_hdmi_trigger() argument
477 struct snd_dw_hdmi *dw = substream->private_data; in dw_hdmi_trigger()
485 dw->substream = substream; in dw_hdmi_trigger()
489 substream->runtime->delay = substream->runtime->period_size; in dw_hdmi_trigger()
494 dw->substream = NULL; in dw_hdmi_trigger()
508 static snd_pcm_uframes_t dw_hdmi_pointer(struct snd_pcm_substream *substream) in dw_hdmi_pointer() argument
510 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_pointer()
511 struct snd_dw_hdmi *dw = substream->private_data; in dw_hdmi_pointer()