Lines Matching full:rtd

57 static int sc7180_headset_init(struct snd_soc_pcm_runtime *rtd)  in sc7180_headset_init()  argument
59 struct snd_soc_card *card = rtd->card; in sc7180_headset_init()
61 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_headset_init()
93 static int sc7180_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sc7180_hdmi_init() argument
95 struct snd_soc_card *card = rtd->card; in sc7180_hdmi_init()
97 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_hdmi_init()
119 static int sc7180_init(struct snd_soc_pcm_runtime *rtd) in sc7180_init() argument
121 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_init()
125 return sc7180_headset_init(rtd); in sc7180_init()
129 return sc7180_hdmi_init(rtd); in sc7180_init()
131 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_init()
138 static int sc7180_qdsp_init(struct snd_soc_pcm_runtime *rtd) in sc7180_qdsp_init() argument
140 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_qdsp_init()
144 return sc7180_headset_init(rtd); in sc7180_qdsp_init()
149 return sc7180_hdmi_init(rtd); in sc7180_qdsp_init()
151 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_qdsp_init()
158 static int sc7180_startup_realtek_codec(struct snd_soc_pcm_runtime *rtd) in sc7180_startup_realtek_codec() argument
160 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_startup_realtek_codec()
187 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in sc7180_startup_realtek_codec()
195 dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n", in sc7180_startup_realtek_codec()
203 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7180_snd_startup() local
204 struct snd_soc_card *card = rtd->card; in sc7180_snd_startup()
206 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_snd_startup()
218 ret = sc7180_startup_realtek_codec(rtd); in sc7180_snd_startup()
228 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_snd_startup()
237 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7180_qdsp_snd_startup() local
238 struct snd_soc_card *card = rtd->card; in sc7180_qdsp_snd_startup()
240 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_qdsp_snd_startup()
241 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_qdsp_snd_startup()
260 ret = sc7180_startup_realtek_codec(rtd); in sc7180_qdsp_snd_startup()
280 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_qdsp_snd_startup()
310 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7180_snd_shutdown() local
311 struct snd_soc_card *card = rtd->card; in sc7180_snd_shutdown()
313 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_snd_shutdown()
329 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_snd_shutdown()
337 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7180_qdsp_snd_shutdown() local
338 struct snd_soc_card *card = rtd->card; in sc7180_qdsp_snd_shutdown()
340 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_qdsp_snd_shutdown()
365 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_qdsp_snd_shutdown()
371 static int sc7180_adau7002_init(struct snd_soc_pcm_runtime *rtd) in sc7180_adau7002_init() argument
373 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_adau7002_init()
381 return sc7180_hdmi_init(rtd); in sc7180_adau7002_init()
383 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_adau7002_init()
392 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sc7180_adau7002_snd_startup() local
393 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in sc7180_adau7002_snd_startup()
394 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in sc7180_adau7002_snd_startup()
412 dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, in sc7180_adau7002_snd_startup()
419 static int sc7180_qdsp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in sc7180_qdsp_be_hw_params_fixup() argument