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