Lines Matching refs:runtime
212 struct snd_pcm_runtime *runtime = substream->runtime;
213 struct q6apm_dai_rtd *prtd = runtime->private_data;
229 cfg.sample_rate = runtime->rate;
230 cfg.num_channels = runtime->channels;
233 audioreach_set_default_channel_mapping(cfg.channel_map, runtime->channels);
276 for (i = 0; i < runtime->periods; i++)
289 struct snd_pcm_runtime *runtime = substream->runtime;
290 struct q6apm_dai_rtd *prtd = runtime->private_data;
294 avail_periods = (runtime->control->appl_ptr - prtd->queue_ptr)/runtime->period_size;
301 prtd->queue_ptr += runtime->period_size;
311 struct snd_pcm_runtime *runtime = substream->runtime;
312 struct q6apm_dai_rtd *prtd = runtime->private_data;
338 struct snd_pcm_runtime *runtime = substream->runtime;
368 runtime->hw = q6apm_dai_hardware_playback;
370 runtime->hw = q6apm_dai_hardware_capture;
373 ret = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
380 ret = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
389 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 480);
395 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 480);
401 runtime->private_data = prtd;
402 runtime->dma_bytes = BUFFER_BYTES_MAX;
418 struct snd_pcm_runtime *runtime = substream->runtime;
419 struct q6apm_dai_rtd *prtd = runtime->private_data;
429 runtime->private_data = NULL;
437 struct snd_pcm_runtime *runtime = substream->runtime;
438 struct q6apm_dai_rtd *prtd = runtime->private_data;
441 ptr = q6apm_get_hw_pointer(prtd->graph, substream->stream) * runtime->period_size;
452 struct snd_pcm_runtime *runtime = substream->runtime;
453 struct q6apm_dai_rtd *prtd = runtime->private_data;
484 struct snd_compr_runtime *runtime = stream->runtime;
508 runtime->private_data = prtd;
509 runtime->dma_bytes = BUFFER_BYTES_MAX;
530 struct snd_compr_runtime *runtime = stream->runtime;
531 struct q6apm_dai_rtd *prtd = runtime->private_data;
539 runtime->private_data = NULL;
580 struct snd_compr_runtime *runtime = stream->runtime;
581 struct q6apm_dai_rtd *prtd = runtime->private_data;
595 struct snd_compr_runtime *runtime = stream->runtime;
596 struct q6apm_dai_rtd *prtd = runtime->private_data;
628 struct snd_compr_runtime *runtime = stream->runtime;
629 struct q6apm_dai_rtd *prtd = runtime->private_data;
643 struct snd_compr_runtime *runtime = stream->runtime;
644 struct q6apm_dai_rtd *prtd = runtime->private_data;
655 prtd->periods = runtime->fragments;
656 prtd->pcm_count = runtime->fragment_size;
657 prtd->pcm_size = runtime->fragments * runtime->fragment_size;
719 struct snd_compr_runtime *runtime = stream->runtime;
720 struct q6apm_dai_rtd *prtd = runtime->private_data;
744 struct snd_compr_runtime *runtime = stream->runtime;
745 struct q6apm_dai_rtd *prtd = runtime->private_data;
756 struct snd_compr_runtime *runtime = stream->runtime;
757 struct q6apm_dai_rtd *prtd = runtime->private_data;