Lines Matching full:rtd
60 static int sc7280_headset_init(struct snd_soc_pcm_runtime *rtd) in sc7280_headset_init() argument
62 struct snd_soc_card *card = rtd->card; in sc7280_headset_init()
64 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_headset_init()
65 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_headset_init()
102 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_headset_init()
117 static int sc7280_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sc7280_hdmi_init() argument
119 struct snd_soc_card *card = rtd->card; in sc7280_hdmi_init()
121 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_hdmi_init()
141 static int sc7280_rt5682_init(struct snd_soc_pcm_runtime *rtd) in sc7280_rt5682_init() argument
143 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_rt5682_init()
144 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_rt5682_init()
145 struct snd_soc_card *card = rtd->card; in sc7280_rt5682_init()
163 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in sc7280_rt5682_init()
172 dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n", in sc7280_rt5682_init()
180 static int sc7280_init(struct snd_soc_pcm_runtime *rtd) in sc7280_init() argument
182 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_init()
188 return sc7280_headset_init(rtd); in sc7280_init()
197 return sc7280_hdmi_init(rtd); in sc7280_init()
199 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); in sc7280_init()
209 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7280_snd_hw_params() local
211 const struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_snd_hw_params()
212 struct sc7280_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sc7280_snd_hw_params()
216 if (!rtd->dai_link->no_pcm) { in sc7280_snd_hw_params()
228 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_snd_hw_params()
241 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7280_snd_swr_prepare() local
242 const struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_snd_swr_prepare()
243 struct sc7280_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sc7280_snd_swr_prepare()
272 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7280_snd_prepare() local
273 const struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_snd_prepare()
291 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7280_snd_hw_free() local
292 struct sc7280_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sc7280_snd_hw_free()
293 const struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_snd_hw_free()
316 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7280_snd_shutdown() local
317 struct snd_soc_card *card = rtd->card; in sc7280_snd_shutdown()
319 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_snd_shutdown()
347 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7280_snd_startup() local
348 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7280_snd_startup()
349 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7280_snd_startup()
354 ret = sc7280_rt5682_init(rtd); in sc7280_snd_startup()
392 static int sc7280_snd_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sc7280_snd_be_hw_params_fixup() argument