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