Lines Matching refs:rtd
45 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed() local
47 snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in snd_sof_pcm_period_elapsed()
50 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed()
70 sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd, in sof_pcm_setup_connected_widgets() argument
78 for_each_rtd_cpu_dais(rtd, j, dai) { in sof_pcm_setup_connected_widgets()
108 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_hw_params() local
116 if (rtd->dai_link->no_pcm) in sof_pcm_hw_params()
119 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_hw_params()
145 ret = sof_pcm_setup_connected_widgets(sdev, rtd, spcm, params, &platform_params, in sof_pcm_hw_params()
257 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_hw_free() local
263 if (rtd->dai_link->no_pcm) in sof_pcm_hw_free()
266 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_hw_free()
282 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_prepare() local
288 if (rtd->dai_link->no_pcm) in sof_pcm_prepare()
291 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_prepare()
329 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_trigger() local
338 if (rtd->dai_link->no_pcm) in sof_pcm_trigger()
341 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_trigger()
441 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_pointer() local
449 if (rtd->dai_link->no_pcm) in sof_pcm_pointer()
462 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_pointer()
480 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_open() local
489 if (rtd->dai_link->no_pcm) in sof_pcm_open()
492 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_open()
543 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_close() local
549 if (rtd->dai_link->no_pcm) in sof_pcm_close()
552 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_close()
579 struct snd_soc_pcm_runtime *rtd) in sof_pcm_new() argument
583 struct snd_pcm *pcm = rtd->pcm; in sof_pcm_new()
588 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_pcm_new()
591 rtd->dai_link->id); in sof_pcm_new()
642 int sof_pcm_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_hw_params *params) in sof_pcm_dai_link_fixup() argument
650 snd_soc_rtdcom_lookup(rtd, SOF_AUDIO_PCM_DRV_NAME); in sof_pcm_dai_link_fixup()
652 snd_sof_find_dai(component, (char *)rtd->dai_link->name); in sof_pcm_dai_link_fixup()
660 rtd->dai_link->name); in sof_pcm_dai_link_fixup()
676 return pcm_ops->dai_link_fixup(rtd, params); in sof_pcm_dai_link_fixup()