Lines Matching full:rtd
79 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in tegra_pcm_open() local
82 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in tegra_pcm_open()
85 if (rtd->dai_link->no_pcm) in tegra_pcm_open()
97 dev_err(rtd->dev, "failed to set constraint %d\n", ret); in tegra_pcm_open()
111 dev_err(rtd->dev, in tegra_pcm_open()
130 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in tegra_pcm_close() local
132 if (rtd->dai_link->no_pcm) in tegra_pcm_close()
145 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in tegra_pcm_hw_params() local
151 if (rtd->dai_link->no_pcm) in tegra_pcm_hw_params()
154 dmap = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in tegra_pcm_hw_params()
163 dev_err(rtd->dev, "hw params config failed with err %d\n", ret); in tegra_pcm_hw_params()
179 dev_err(rtd->dev, "dma slave config failed with err %d\n", ret); in tegra_pcm_hw_params()
194 static int tegra_pcm_dma_allocate(struct device *dev, struct snd_soc_pcm_runtime *rtd, in tegra_pcm_dma_allocate() argument
197 struct snd_pcm *pcm = rtd->pcm; in tegra_pcm_dma_allocate()
208 struct snd_soc_pcm_runtime *rtd) in tegra_pcm_construct() argument
217 dev = rtd->card->snd_card->dev; in tegra_pcm_construct()
219 return tegra_pcm_dma_allocate(dev, rtd, tegra_pcm_hardware.buffer_bytes_max); in tegra_pcm_construct()