Lines Matching defs:runtime
210 struct snd_pcm_runtime *runtime)
215 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs));
320 struct snd_pcm_runtime *runtime = substream->runtime;
326 runtime->hw = dw_hdmi_hw;
330 ret = snd_pcm_hw_constraint_eld(runtime, eld);
335 ret = snd_pcm_limit_hw_rates(runtime);
339 ret = snd_pcm_hw_constraint_integer(runtime,
345 ret = snd_pcm_hw_constraint_minmax(runtime,
397 /* Allocate the PCM runtime buffer, which is exposed to userspace. */
404 struct snd_pcm_runtime *runtime = substream->runtime;
413 if (runtime->channels == 2)
428 dw_hdmi_set_sample_rate(dw->data.hdmi, runtime->rate);
431 runtime->hw.fifo_size = threshold * 32;
434 conf1 = default_hdmi_channel_config[runtime->channels - 2].conf1;
435 ca = default_hdmi_channel_config[runtime->channels - 2].ca;
441 dw_hdmi_set_channel_count(dw->data.hdmi, runtime->channels);
444 switch (runtime->format) {
449 dw_hdmi_create_cs(dw, runtime);
454 dw->channels = runtime->channels;
455 dw->buf_src = runtime->dma_area;
478 substream->runtime->delay = substream->runtime->period_size;
499 struct snd_pcm_runtime *runtime = substream->runtime;
506 return bytes_to_frames(runtime, dw->buf_offset);