Lines Matching refs:rtd
73 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_open() local
76 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in tegra_pcm_open()
79 if (rtd->dai_link->no_pcm) in tegra_pcm_open()
91 dev_err(rtd->dev, "failed to set constraint %d\n", ret); in tegra_pcm_open()
105 dev_err(rtd->dev, in tegra_pcm_open()
121 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_close() local
123 if (rtd->dai_link->no_pcm) in tegra_pcm_close()
136 struct snd_soc_pcm_runtime *rtd = substream->private_data; in tegra_pcm_hw_params() local
142 if (rtd->dai_link->no_pcm) in tegra_pcm_hw_params()
145 dmap = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in tegra_pcm_hw_params()
154 dev_err(rtd->dev, "hw params config failed with err %d\n", ret); in tegra_pcm_hw_params()
170 dev_err(rtd->dev, "dma slave config failed with err %d\n", ret); in tegra_pcm_hw_params()
185 static int tegra_pcm_dma_allocate(struct device *dev, struct snd_soc_pcm_runtime *rtd, in tegra_pcm_dma_allocate() argument
188 struct snd_pcm *pcm = rtd->pcm; in tegra_pcm_dma_allocate()
199 struct snd_soc_pcm_runtime *rtd) in tegra_pcm_construct() argument
208 dev = rtd->card->snd_card->dev; in tegra_pcm_construct()
210 return tegra_pcm_dma_allocate(dev, rtd, tegra_pcm_hardware.buffer_bytes_max); in tegra_pcm_construct()