Lines Matching refs:runtime
129 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare() local
130 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare()
146 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare()
147 cfg.num_channels = runtime->channels; in q6apm_dai_prepare()
186 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare()
200 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_trigger() local
201 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_trigger()
230 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_open() local
259 runtime->hw = q6apm_dai_hardware_playback; in q6apm_dai_open()
261 runtime->hw = q6apm_dai_hardware_capture; in q6apm_dai_open()
264 ret = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in q6apm_dai_open()
271 ret = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, in q6apm_dai_open()
279 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); in q6apm_dai_open()
285 ret = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 32); in q6apm_dai_open()
291 runtime->private_data = prtd; in q6apm_dai_open()
292 runtime->dma_bytes = BUFFER_BYTES_MAX; in q6apm_dai_open()
308 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_close() local
309 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_close()
316 runtime->private_data = NULL; in q6apm_dai_close()
324 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_pointer() local
325 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_pointer()
330 return bytes_to_frames(runtime, prtd->pos); in q6apm_dai_pointer()
337 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_hw_params() local
338 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_hw_params()