Lines Matching refs:runtime

217 	struct snd_pcm_runtime *runtime)  in dw_hdmi_create_cs()  argument
222 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); in dw_hdmi_create_cs()
327 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open() local
332 runtime->hw = dw_hdmi_hw; in dw_hdmi_open()
334 ret = snd_pcm_hw_constraint_eld(runtime, dw->data.eld); in dw_hdmi_open()
338 ret = snd_pcm_limit_hw_rates(runtime); in dw_hdmi_open()
342 ret = snd_pcm_hw_constraint_integer(runtime, in dw_hdmi_open()
348 ret = snd_pcm_hw_constraint_minmax(runtime, in dw_hdmi_open()
407 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_prepare() local
416 if (runtime->channels == 2) in dw_hdmi_prepare()
431 dw_hdmi_set_sample_rate(dw->data.hdmi, runtime->rate); in dw_hdmi_prepare()
434 runtime->hw.fifo_size = threshold * 32; in dw_hdmi_prepare()
437 conf1 = default_hdmi_channel_config[runtime->channels - 2].conf1; in dw_hdmi_prepare()
438 ca = default_hdmi_channel_config[runtime->channels - 2].ca; in dw_hdmi_prepare()
444 if (runtime->channels > 2) in dw_hdmi_prepare()
455 switch (runtime->format) { in dw_hdmi_prepare()
460 dw_hdmi_create_cs(dw, runtime); in dw_hdmi_prepare()
465 dw->channels = runtime->channels; in dw_hdmi_prepare()
466 dw->buf_src = runtime->dma_area; in dw_hdmi_prepare()
489 substream->runtime->delay = substream->runtime->period_size; in dw_hdmi_trigger()
510 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_pointer() local
517 return bytes_to_frames(runtime, dw->buf_offset); in dw_hdmi_pointer()