Lines Matching refs:rtd
59 struct snd_soc_pcm_runtime *rtd = substream->private_data; in mt8195_rt5682_etdm_hw_params() local
60 struct snd_soc_card *card = rtd->card; in mt8195_rt5682_etdm_hw_params()
61 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in mt8195_rt5682_etdm_hw_params()
62 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in mt8195_rt5682_etdm_hw_params()
109 static int mt8195_mt6359_mtkaif_calibration(struct snd_soc_pcm_runtime *rtd) in mt8195_mt6359_mtkaif_calibration() argument
112 snd_soc_rtdcom_lookup(rtd, AFE_PCM_NAME); in mt8195_mt6359_mtkaif_calibration()
114 asoc_rtd_to_codec(rtd, 0)->component; in mt8195_mt6359_mtkaif_calibration()
272 static int mt8195_mt6359_init(struct snd_soc_pcm_runtime *rtd) in mt8195_mt6359_init() argument
275 asoc_rtd_to_codec(rtd, 0)->component; in mt8195_mt6359_init()
282 mt8195_mt6359_mtkaif_calibration(rtd); in mt8195_mt6359_init()
287 static int mt8195_rt5682_init(struct snd_soc_pcm_runtime *rtd) in mt8195_rt5682_init() argument
290 asoc_rtd_to_codec(rtd, 0)->component; in mt8195_rt5682_init()
292 snd_soc_card_get_drvdata(rtd->card); in mt8195_rt5682_init()
296 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", in mt8195_rt5682_init()
302 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); in mt8195_rt5682_init()
313 dev_err(rtd->dev, "Headset Jack set failed: %d\n", ret); in mt8195_rt5682_init()
320 static int mt8195_etdm_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in mt8195_etdm_hw_params_fixup() argument
351 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in mt8195_hdmitx_dptx_startup() local
359 dev_err(rtd->dev, "hw_constraint_list rate failed\n"); in mt8195_hdmitx_dptx_startup()
367 dev_err(rtd->dev, "hw_constraint_list channel failed\n"); in mt8195_hdmitx_dptx_startup()
381 struct snd_soc_pcm_runtime *rtd = substream->private_data; in mt8195_dptx_hw_params() local
382 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in mt8195_dptx_hw_params()
395 static int mt8195_dptx_codec_init(struct snd_soc_pcm_runtime *rtd) in mt8195_dptx_codec_init() argument
398 snd_soc_card_get_drvdata(rtd->card); in mt8195_dptx_codec_init()
400 asoc_rtd_to_codec(rtd, 0)->component; in mt8195_dptx_codec_init()
403 ret = snd_soc_card_jack_new(rtd->card, "DP Jack", SND_JACK_LINEOUT, in mt8195_dptx_codec_init()
411 static int mt8195_hdmi_codec_init(struct snd_soc_pcm_runtime *rtd) in mt8195_hdmi_codec_init() argument
414 snd_soc_card_get_drvdata(rtd->card); in mt8195_hdmi_codec_init()
416 asoc_rtd_to_codec(rtd, 0)->component; in mt8195_hdmi_codec_init()
419 ret = snd_soc_card_jack_new(rtd->card, "HDMI Jack", SND_JACK_LINEOUT, in mt8195_hdmi_codec_init()
427 static int mt8195_dptx_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, in mt8195_dptx_hw_params_fixup() argument
459 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in mt8195_playback_startup() local
467 dev_err(rtd->dev, "hw_constraint_list rate failed\n"); in mt8195_playback_startup()
475 dev_err(rtd->dev, "hw_constraint_list channel failed\n"); in mt8195_playback_startup()
505 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in mt8195_capture_startup() local
513 dev_err(rtd->dev, "hw_constraint_list rate failed\n"); in mt8195_capture_startup()
521 dev_err(rtd->dev, "hw_constraint_list channel failed\n"); in mt8195_capture_startup()