Lines Matching full:runtime
225 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare() local
226 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare()
242 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare()
243 cfg.num_channels = runtime->channels; in q6apm_dai_prepare()
289 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare()
303 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_trigger() local
304 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_trigger()
333 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_open() local
363 runtime->hw = q6apm_dai_hardware_playback; in q6apm_dai_open()
365 runtime->hw = q6apm_dai_hardware_capture; in q6apm_dai_open()
368 ret = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in q6apm_dai_open()
375 ret = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, in q6apm_dai_open()
383 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); in q6apm_dai_open()
389 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 32); in q6apm_dai_open()
395 runtime->private_data = prtd; in q6apm_dai_open()
396 runtime->dma_bytes = BUFFER_BYTES_MAX; in q6apm_dai_open()
412 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_close() local
413 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_close()
423 runtime->private_data = NULL; in q6apm_dai_close()
431 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_pointer() local
432 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_pointer()
440 ptr = bytes_to_frames(runtime, prtd->pos); in q6apm_dai_pointer()
450 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_hw_params() local
451 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_hw_params()
482 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_open() local
506 runtime->private_data = prtd; in q6apm_dai_compr_open()
507 runtime->dma_bytes = BUFFER_BYTES_MAX; in q6apm_dai_compr_open()
528 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_free() local
529 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_compr_free()
537 runtime->private_data = NULL; in q6apm_dai_compr_free()
578 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_pointer() local
579 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_compr_pointer()
593 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_trigger() local
594 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_compr_trigger()
626 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_ack() local
627 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_compr_ack()
641 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_set_params() local
642 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_compr_set_params()
653 prtd->periods = runtime->fragments; in q6apm_dai_compr_set_params()
654 prtd->pcm_count = runtime->fragment_size; in q6apm_dai_compr_set_params()
655 prtd->pcm_size = runtime->fragments * runtime->fragment_size; in q6apm_dai_compr_set_params()
717 struct snd_compr_runtime *runtime = stream->runtime; in q6apm_dai_compr_set_metadata() local
718 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()