Lines Matching full:rtd

113 	struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);  in max_98373_hw_params()  local
114 struct snd_soc_dai_link *dai_link = rtd->dai_link; in max_98373_hw_params()
122 for_each_rtd_codec_dais(rtd, i, codec_dai) { in max_98373_hw_params()
132 tdm_slots = sof_dai_get_tdm_slots(rtd); in max_98373_hw_params()
134 dev_err(rtd->dev, "invalid tdm slots %d\n", in max_98373_hw_params()
192 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in max_98373_trigger() local
202 cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in max_98373_trigger()
203 for_each_rtd_codec_dais(rtd, j, codec_dai) { in max_98373_trigger()
239 static int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd) in max_98373_spk_codec_init() argument
241 struct snd_soc_card *card = rtd->card; in max_98373_spk_codec_init()
250 dev_err(rtd->dev, "fail to add max98373 widgets, ret %d\n", in max_98373_spk_codec_init()
258 dev_err(rtd->dev, "fail to add max98373 kcontrols, ret %d\n", in max_98373_spk_codec_init()
266 dev_err(rtd->dev, "fail to add max98373 routes, ret %d\n", in max_98373_spk_codec_init()
272 dev_err(rtd->dev, "max98373: invalid num_codecs %d\n", num_codecs); in max_98373_spk_codec_init()
382 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in max_98390_hw_params() local
383 struct snd_soc_dai_link *dai_link = rtd->dai_link; in max_98390_hw_params()
387 for_each_rtd_codec_dais(rtd, i, codec_dai) { in max_98390_hw_params()
416 static int max_98390_init(struct snd_soc_pcm_runtime *rtd) in max_98390_init() argument
418 struct snd_soc_card *card = rtd->card; in max_98390_init()
428 dev_err(rtd->dev, "unable to add tweeter dapm widgets, ret %d\n", in max_98390_init()
437 dev_err(rtd->dev, "unable to add tweeter controls, ret %d\n", in max_98390_init()
445 dev_err(rtd->dev, "unable to add tweeter dapm routes, ret %d\n", in max_98390_init()
456 dev_err(rtd->dev, "fail to add max98390 woofer widgets, ret %d\n", in max_98390_init()
464 dev_err(rtd->dev, "fail to add max98390 woofer kcontrols, ret %d\n", in max_98390_init()
472 dev_err(rtd->dev, "unable to add dapm routes, ret %d\n", in max_98390_init()
478 dev_err(rtd->dev, "invalid codec number %d\n", num_codecs); in max_98390_init()
564 static int max_98357a_init(struct snd_soc_pcm_runtime *rtd) in max_98357a_init() argument
566 struct snd_soc_card *card = rtd->card; in max_98357a_init()
572 dev_err(rtd->dev, "unable to add dapm controls, ret %d\n", ret); in max_98357a_init()
580 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in max_98357a_init()
588 dev_err(rtd->dev, "unable to add dapm routes, ret %d\n", ret); in max_98357a_init()