Lines Matching refs:runtime
179 return bytes_to_frames(substream->runtime, memif->hw_ptr); in mtk_afe_pcm_pointer()
386 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_afe_i2s_prepare() local
391 afe->clocks[MTK_CLK_I2S1_M], runtime->rate * 256, in mtk_afe_i2s_prepare()
394 ret = mtk_afe_set_i2s(afe, substream->runtime->rate); in mtk_afe_i2s_prepare()
437 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_afe_hdmi_prepare() local
442 afe->clocks[MTK_CLK_I2S3_M], runtime->rate * 128, in mtk_afe_hdmi_prepare()
444 runtime->rate * runtime->channels * 32); in mtk_afe_hdmi_prepare()
455 switch (runtime->channels) { in mtk_afe_hdmi_prepare()
490 0x000000f0, runtime->channels << 4); in mtk_afe_hdmi_prepare()
545 struct snd_pcm_runtime *runtime = substream->runtime; in mtk_afe_dais_startup() local
560 ret = snd_pcm_hw_constraint_minmax(runtime, in mtk_afe_dais_startup()
569 ret = snd_pcm_hw_constraint_integer(runtime, in mtk_afe_dais_startup()
604 memif->phys_buf_addr = substream->runtime->dma_addr; in mtk_afe_dais_hw_params()
605 memif->buffer_size = substream->runtime->dma_bytes; in mtk_afe_dais_hw_params()
690 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_afe_dais_trigger() local
693 unsigned int counter = runtime->period_size; in mtk_afe_dais_trigger()
713 int fs = mtk_afe_i2s_fs(runtime->rate); in mtk_afe_dais_trigger()