Lines Matching refs:runtime

211 	struct snd_pcm_runtime *runtime)  in dw_hdmi_create_cs()  argument
216 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); in dw_hdmi_create_cs()
321 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open() local
327 runtime->hw = dw_hdmi_hw; in dw_hdmi_open()
331 ret = snd_pcm_hw_constraint_eld(runtime, eld); in dw_hdmi_open()
336 ret = snd_pcm_limit_hw_rates(runtime); in dw_hdmi_open()
340 ret = snd_pcm_hw_constraint_integer(runtime, in dw_hdmi_open()
346 ret = snd_pcm_hw_constraint_minmax(runtime, in dw_hdmi_open()
392 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_hw_free() local
394 vfree(runtime->dma_area); in dw_hdmi_hw_free()
395 runtime->dma_area = NULL; in dw_hdmi_hw_free()
402 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_hw_params() local
406 if (runtime->dma_area) { in dw_hdmi_hw_params()
407 if (runtime->dma_bytes >= size) in dw_hdmi_hw_params()
409 vfree(runtime->dma_area); in dw_hdmi_hw_params()
411 runtime->dma_area = vzalloc(size); in dw_hdmi_hw_params()
412 if (!runtime->dma_area) in dw_hdmi_hw_params()
414 runtime->dma_bytes = size; in dw_hdmi_hw_params()
421 return vmalloc_to_page(substream->runtime->dma_area + offset); in dw_hdmi_get_page()
426 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_prepare() local
435 if (runtime->channels == 2) in dw_hdmi_prepare()
450 dw_hdmi_set_sample_rate(dw->data.hdmi, runtime->rate); in dw_hdmi_prepare()
453 runtime->hw.fifo_size = threshold * 32; in dw_hdmi_prepare()
456 conf1 = default_hdmi_channel_config[runtime->channels - 2].conf1; in dw_hdmi_prepare()
457 ca = default_hdmi_channel_config[runtime->channels - 2].ca; in dw_hdmi_prepare()
463 dw_hdmi_set_channel_count(dw->data.hdmi, runtime->channels); in dw_hdmi_prepare()
466 switch (runtime->format) { in dw_hdmi_prepare()
471 dw_hdmi_create_cs(dw, runtime); in dw_hdmi_prepare()
476 dw->channels = runtime->channels; in dw_hdmi_prepare()
477 dw->buf_src = runtime->dma_area; in dw_hdmi_prepare()
500 substream->runtime->delay = substream->runtime->period_size; in dw_hdmi_trigger()
521 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_pointer() local
528 return bytes_to_frames(runtime, dw->buf_offset); in dw_hdmi_pointer()