Lines Matching refs:runtime
138 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare() local
139 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare()
155 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare()
156 cfg.num_channels = runtime->channels; in q6apm_dai_prepare()
201 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare()
215 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_trigger() local
216 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_trigger()
245 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_open() local
275 runtime->hw = q6apm_dai_hardware_playback; in q6apm_dai_open()
277 runtime->hw = q6apm_dai_hardware_capture; in q6apm_dai_open()
280 ret = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in q6apm_dai_open()
287 ret = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, in q6apm_dai_open()
295 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); in q6apm_dai_open()
301 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 32); in q6apm_dai_open()
307 runtime->private_data = prtd; in q6apm_dai_open()
308 runtime->dma_bytes = BUFFER_BYTES_MAX; in q6apm_dai_open()
324 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_close() local
325 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_close()
335 runtime->private_data = NULL; in q6apm_dai_close()
343 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_pointer() local
344 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_pointer()
352 ptr = bytes_to_frames(runtime, prtd->pos); in q6apm_dai_pointer()
362 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_hw_params() local
363 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_hw_params()