Lines Matching refs:runtime

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