Lines Matching full:rtd

62 	struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);  in sdm845_slim_snd_hw_params()  local
63 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params()
65 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
71 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params()
102 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_tdm_snd_hw_params() local
103 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_tdm_snd_hw_params()
113 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
123 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
131 dev_err(rtd->dev, "%s: failed to set channel map, err:%d\n", in sdm845_tdm_snd_hw_params()
139 dev_err(rtd->dev, "%s: failed to set tdm slot, err:%d\n", in sdm845_tdm_snd_hw_params()
147 dev_err(rtd->dev, "%s: failed to set channel map, err:%d\n", in sdm845_tdm_snd_hw_params()
153 for_each_rtd_codec_dais(rtd, j, codec_dai) { in sdm845_tdm_snd_hw_params()
161 dev_err(rtd->dev, in sdm845_tdm_snd_hw_params()
173 dev_err(rtd->dev, in sdm845_tdm_snd_hw_params()
187 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_snd_hw_params() local
188 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_snd_hw_params()
189 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sdm845_snd_hw_params()
207 dev_err(rtd->dev, in sdm845_snd_hw_params()
233 static int sdm845_dai_init(struct snd_soc_pcm_runtime *rtd) in sdm845_dai_init() argument
236 struct snd_soc_card *card = rtd->card; in sdm845_dai_init()
237 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sdm845_dai_init()
238 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_dai_init()
240 struct snd_soc_dai_link *link = rtd->dai_link; in sdm845_dai_init()
299 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_dai_init()
335 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_snd_startup() local
336 struct snd_soc_card *card = rtd->card; in sdm845_snd_startup()
338 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_snd_startup()
339 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sdm845_snd_startup()
388 for_each_rtd_codec_dais(rtd, j, codec_dai) { in sdm845_snd_startup()
395 dev_err(rtd->dev, in sdm845_snd_startup()
406 dev_err(rtd->dev, in sdm845_snd_startup()
425 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_snd_shutdown() local
426 struct snd_soc_card *card = rtd->card; in sdm845_snd_shutdown()
428 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_snd_shutdown()
475 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_snd_prepare() local
476 struct sdm845_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sdm845_snd_prepare()
477 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_snd_prepare()
514 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sdm845_snd_hw_free() local
515 struct sdm845_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sdm845_snd_hw_free()
516 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sdm845_snd_hw_free()
536 static int sdm845_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sdm845_be_hw_params_fixup() argument