Home
last modified time | relevance | path

Searched refs:dai_link (Results 1 – 25 of 186) sorted by relevance

12345678

/kernel/linux/linux-5.10/sound/soc/
Dsoc-link.c27 func, rtd->dai_link->name, ret); in _soc_link_ret()
45 if (rtd->dai_link->init) in snd_soc_link_init()
46 ret = rtd->dai_link->init(rtd); in snd_soc_link_init()
53 if (rtd->dai_link->exit) in snd_soc_link_exit()
54 rtd->dai_link->exit(rtd); in snd_soc_link_exit()
62 if (rtd->dai_link->be_hw_params_fixup) in snd_soc_link_be_hw_params_fixup()
63 ret = rtd->dai_link->be_hw_params_fixup(rtd, params); in snd_soc_link_be_hw_params_fixup()
73 if (rtd->dai_link->ops && in snd_soc_link_startup()
74 rtd->dai_link->ops->startup) in snd_soc_link_startup()
75 ret = rtd->dai_link->ops->startup(substream); in snd_soc_link_startup()
[all …]
Dsoc-core.c348 struct snd_soc_dai_link *dai_link) in snd_soc_get_pcm_runtime() argument
353 if (rtd->dai_link == dai_link) in snd_soc_get_pcm_runtime()
356 dev_dbg(card->dev, "ASoC: failed to find rtd %s\n", dai_link->name); in snd_soc_get_pcm_runtime()
431 struct snd_soc_card *card, struct snd_soc_dai_link *dai_link) in soc_new_pcm_runtime() argument
449 dev_set_name(dev, "%s", dai_link->name); in soc_new_pcm_runtime()
462 sizeof(*component) * (dai_link->num_cpus + in soc_new_pcm_runtime()
463 dai_link->num_codecs + in soc_new_pcm_runtime()
464 dai_link->num_platforms), in soc_new_pcm_runtime()
481 rtd->dais = devm_kcalloc(dev, dai_link->num_cpus + dai_link->num_codecs, in soc_new_pcm_runtime()
495 rtd->num_cpus = dai_link->num_cpus; in soc_new_pcm_runtime()
[all …]
Dsoc-pcm.c71 "[%s - %s]\n", fe->dai_link->name, in dpcm_show_state()
101 "- %s\n", be->dai_link->name); in dpcm_show_state()
159 if (!rtd->dai_link) in soc_dpcm_debugfs_add()
162 if (!rtd->dai_link->dynamic) in soc_dpcm_debugfs_add()
168 rtd->debugfs_dpcm_root = debugfs_create_dir(rtd->dai_link->name, in soc_dpcm_debugfs_add()
179 name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, in dpcm_create_debugfs_state()
247 if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time) in snd_soc_runtime_ignore_pmdown_time()
290 be->dai_link->name, event, dir); in dpcm_dapm_stream_event()
311 rtd->dai_link->symmetric_rates)) { in soc_pcm_apply_symmetry()
327 rtd->dai_link->symmetric_channels)) { in soc_pcm_apply_symmetry()
[all …]
/kernel/linux/linux-5.10/sound/soc/meson/
Dgx-card.c49 struct snd_soc_dai_link *link = &card->dai_link[*index]; in gx_card_parse_i2s()
82 struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; in gx_card_add_link() local
90 dai_link->cpus = cpu; in gx_card_add_link()
91 dai_link->num_cpus = 1; in gx_card_add_link()
93 ret = meson_card_parse_dai(card, np, &dai_link->cpus->of_node, in gx_card_add_link()
94 &dai_link->cpus->dai_name); in gx_card_add_link()
98 if (gx_card_cpu_identify(dai_link->cpus, "FIFO")) in gx_card_add_link()
99 return meson_card_set_fe_link(card, dai_link, np, true); in gx_card_add_link()
101 ret = meson_card_set_be_link(card, dai_link, np); in gx_card_add_link()
106 if (gx_card_cpu_identify(dai_link->cpus, "CODEC CTRL")) { in gx_card_add_link()
[all …]
Daxg-card.c107 struct snd_soc_dai_link *pad = &card->dai_link[*index]; in axg_card_add_tdm_loopback()
117 lb = &card->dai_link[*index + 1]; in axg_card_add_tdm_loopback()
252 struct snd_soc_dai_link *link = &card->dai_link[*index]; in axg_card_parse_tdm()
313 struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; in axg_card_add_link() local
321 dai_link->cpus = cpu; in axg_card_add_link()
322 dai_link->num_cpus = 1; in axg_card_add_link()
324 ret = meson_card_parse_dai(card, np, &dai_link->cpus->of_node, in axg_card_add_link()
325 &dai_link->cpus->dai_name); in axg_card_add_link()
329 if (axg_card_cpu_is_playback_fe(dai_link->cpus->of_node)) in axg_card_add_link()
330 return meson_card_set_fe_link(card, dai_link, np, true); in axg_card_add_link()
[all …]
/kernel/linux/linux-5.10/sound/soc/generic/
Dsimple-card.c122 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of_dpcm() local
125 struct snd_soc_dai_link_component *cpus = dai_link->cpus; in simple_dai_link_of_dpcm()
126 struct snd_soc_dai_link_component *codecs = dai_link->codecs; in simple_dai_link_of_dpcm()
158 dai_link->dynamic = 1; in simple_dai_link_of_dpcm()
159 dai_link->dpcm_merged_format = 1; in simple_dai_link_of_dpcm()
164 ret = asoc_simple_parse_cpu(np, dai_link, &is_single_links); in simple_dai_link_of_dpcm()
168 ret = asoc_simple_parse_clk_cpu(dev, np, dai_link, dai); in simple_dai_link_of_dpcm()
172 ret = asoc_simple_set_dailink_name(dev, dai_link, in simple_dai_link_of_dpcm()
178 asoc_simple_canonicalize_cpu(dai_link, is_single_links); in simple_dai_link_of_dpcm()
188 dai_link->no_pcm = 1; in simple_dai_link_of_dpcm()
[all …]
Dsimple-card-utils.c98 struct snd_soc_dai_link *dai_link, in asoc_simple_set_dailink_name() argument
112 dai_link->name = name; in asoc_simple_set_dailink_name()
113 dai_link->stream_name = name; in asoc_simple_set_dailink_name()
139 if (!card->name && card->dai_link) in asoc_simple_parse_card_name()
140 card->name = card->dai_link->name; in asoc_simple_parse_card_name()
337 struct snd_soc_dai_link *dai_link = rtd->dai_link; in asoc_simple_init_dai_link_params() local
372 dai_link->params = params; in asoc_simple_init_dai_link_params()
373 dai_link->num_params = 1; in asoc_simple_init_dai_link_params()
402 void asoc_simple_canonicalize_platform(struct snd_soc_dai_link *dai_link) in asoc_simple_canonicalize_platform() argument
405 if (!dai_link->platforms->of_node) in asoc_simple_canonicalize_platform()
[all …]
Daudio-graph-card.c210 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of_dpcm() local
218 struct snd_soc_dai_link_component *cpus = dai_link->cpus; in graph_dai_link_of_dpcm()
219 struct snd_soc_dai_link_component *codecs = dai_link->codecs; in graph_dai_link_of_dpcm()
243 dai_link->dynamic = 1; in graph_dai_link_of_dpcm()
244 dai_link->dpcm_merged_format = 1; in graph_dai_link_of_dpcm()
249 ret = asoc_simple_parse_cpu(ep, dai_link, &is_single_links); in graph_dai_link_of_dpcm()
253 ret = asoc_simple_parse_clk_cpu(dev, ep, dai_link, dai); in graph_dai_link_of_dpcm()
257 ret = asoc_simple_set_dailink_name(dev, dai_link, in graph_dai_link_of_dpcm()
264 asoc_simple_canonicalize_cpu(dai_link, is_single_links); in graph_dai_link_of_dpcm()
274 dai_link->no_pcm = 1; in graph_dai_link_of_dpcm()
[all …]
/kernel/linux/linux-5.10/sound/soc/samsung/
Darndale.c124 .dai_link = arndale_rt5631_dai,
131 .dai_link = arndale_wm1811_dai,
137 struct snd_soc_dai_link *dai_link; in arndale_put_of_nodes() local
140 for_each_card_prelinks(card, i, dai_link) { in arndale_put_of_nodes()
141 of_node_put(dai_link->cpus->of_node); in arndale_put_of_nodes()
142 of_node_put(dai_link->codecs->of_node); in arndale_put_of_nodes()
150 struct snd_soc_dai_link *dai_link; in arndale_audio_probe() local
155 dai_link = card->dai_link; in arndale_audio_probe()
157 dai_link->cpus->of_node = of_parse_phandle(np, "samsung,audio-cpu", 0); in arndale_audio_probe()
158 if (!dai_link->cpus->of_node) { in arndale_audio_probe()
[all …]
Dtm2_wm5110.c285 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[0]); in tm2_set_bias_level()
317 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[TM2_DAI_AIF1]); in tm2_late_probe()
327 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[TM2_DAI_AIF2]); in tm2_late_probe()
484 .dai_link = tm2_dai_links,
505 struct snd_soc_dai_link *dai_link; in tm2_probe() local
573 for_each_card_prelinks(card, i, dai_link) { in tm2_probe()
576 dai_link->cpus->name = NULL; in tm2_probe()
577 dai_link->platforms->name = NULL; in tm2_probe()
582 dai_link->codecs->of_node = codec_dai_node[dai_index]; in tm2_probe()
583 dai_link->cpus->of_node = cpu_dai_node[dai_index]; in tm2_probe()
[all …]
Dbells.c62 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_set_bias_level()
108 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_set_bias_level_post()
154 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_AP_DSP]); in bells_late_probe()
157 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_late_probe()
197 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_CODEC_CP]); in bells_late_probe()
209 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_CODEC_SUB]); in bells_late_probe()
406 .dai_link = bells_dai_wm2200,
426 .dai_link = bells_dai_wm5102,
446 .dai_link = bells_dai_wm5110,
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/
Dmt8183-mt6358-ts3a227-max98357.c527 .dai_link = mt8183_mt6358_ts3a227_dai_links,
534 .dai_link = mt8183_mt6358_ts3a227_dai_links,
552 .dai_link = mt8183_mt6358_ts3a227_dai_links,
591 struct snd_soc_dai_link *dai_link; in mt8183_mt6358_ts3a227_max98357_dev_probe() local
614 for_each_card_prelinks(card, i, dai_link) { in mt8183_mt6358_ts3a227_max98357_dev_probe()
615 if (ec_codec && strcmp(dai_link->name, "Wake on Voice") == 0) { in mt8183_mt6358_ts3a227_max98357_dev_probe()
616 dai_link->cpus[0].name = NULL; in mt8183_mt6358_ts3a227_max98357_dev_probe()
617 dai_link->cpus[0].of_node = ec_codec; in mt8183_mt6358_ts3a227_max98357_dev_probe()
618 dai_link->cpus[0].dai_name = NULL; in mt8183_mt6358_ts3a227_max98357_dev_probe()
619 dai_link->codecs[0].name = NULL; in mt8183_mt6358_ts3a227_max98357_dev_probe()
[all …]
Dmt8183-da7219-max98357.c611 .dai_link = mt8183_da7219_dai_links,
662 .dai_link = mt8183_da7219_dai_links,
679 .dai_link = mt8183_da7219_dai_links,
691 struct snd_soc_dai_link *dai_link; in mt8183_da7219_max98357_dev_probe() local
714 for_each_card_prelinks(card, i, dai_link) { in mt8183_da7219_max98357_dev_probe()
715 if (strcmp(dai_link->name, "I2S3") == 0) { in mt8183_da7219_max98357_dev_probe()
717 dai_link->be_hw_params_fixup = in mt8183_da7219_max98357_dev_probe()
719 dai_link->ops = &mt8183_da7219_i2s_ops; in mt8183_da7219_max98357_dev_probe()
720 dai_link->cpus = i2s3_max98357a_cpus; in mt8183_da7219_max98357_dev_probe()
721 dai_link->num_cpus = in mt8183_da7219_max98357_dev_probe()
[all …]
/kernel/linux/linux-5.10/include/sound/
Dsimple_card_utils.h55 struct snd_soc_dai_link *dai_link; member
63 #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
79 struct snd_soc_dai_link *dai_link,
84 #define asoc_simple_parse_clk_cpu(dev, node, dai_link, simple_dai) \ argument
85 asoc_simple_parse_clk(dev, node, simple_dai, dai_link->cpus)
86 #define asoc_simple_parse_clk_codec(dev, node, dai_link, simple_dai) \ argument
87 asoc_simple_parse_clk(dev, node, simple_dai, dai_link->codecs)
100 #define asoc_simple_parse_cpu(node, dai_link, is_single_link) \ argument
101 asoc_simple_parse_dai(node, dai_link->cpus, is_single_link)
102 #define asoc_simple_parse_codec(node, dai_link) \ argument
[all …]
/kernel/linux/linux-5.10/sound/soc/qcom/
Dstorm.c70 struct snd_soc_dai_link *dai_link = card->dai_link; in storm_parse_of() local
73 dai_link->cpus->of_node = of_parse_phandle(np, "cpu", 0); in storm_parse_of()
74 if (!dai_link->cpus->of_node) { in storm_parse_of()
78 dai_link->platforms->of_node = dai_link->cpus->of_node; in storm_parse_of()
80 dai_link->codecs->of_node = of_parse_phandle(np, "codec", 0); in storm_parse_of()
81 if (!dai_link->codecs->of_node) { in storm_parse_of()
107 card->dai_link = &storm_dai_link; in storm_platform_probe()
/kernel/linux/linux-5.10/sound/soc/rockchip/
Drockchip_max98090.c183 if (!strcmp(rtd->dai_link->name, "HDMI")) in rk_aif1_hw_params()
303 .dai_link = rk_max98090_dailinks,
318 .dai_link = rk_hdmi_dailinks,
331 .dai_link = rk_max98090_hdmi_dailinks,
401 card->dai_link[DAILINK_MAX98090].codecs->of_node = np_audio; in snd_rk_mc_probe()
402 card->dai_link[DAILINK_HDMI].codecs->of_node = np_hdmi; in snd_rk_mc_probe()
403 card->dai_link[DAILINK_MAX98090].cpus->of_node = np_cpu; in snd_rk_mc_probe()
404 card->dai_link[DAILINK_MAX98090].platforms->of_node = np_cpu; in snd_rk_mc_probe()
405 card->dai_link[DAILINK_HDMI].cpus->of_node = np_cpu; in snd_rk_mc_probe()
406 card->dai_link[DAILINK_HDMI].platforms->of_node = np_cpu; in snd_rk_mc_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/ti/
Domap-hdmi.c362 card->dai_link = in omap_hdmi_audio_probe()
363 devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); in omap_hdmi_audio_probe()
364 if (!card->dai_link) in omap_hdmi_audio_probe()
370 card->dai_link->cpus = &compnent[0]; in omap_hdmi_audio_probe()
371 card->dai_link->num_cpus = 1; in omap_hdmi_audio_probe()
372 card->dai_link->codecs = &compnent[1]; in omap_hdmi_audio_probe()
373 card->dai_link->num_codecs = 1; in omap_hdmi_audio_probe()
374 card->dai_link->platforms = &compnent[2]; in omap_hdmi_audio_probe()
375 card->dai_link->num_platforms = 1; in omap_hdmi_audio_probe()
377 card->dai_link->name = card->name; in omap_hdmi_audio_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/mediatek/mt2701/
Dmt2701-wm8960.c98 .dai_link = mt2701_wm8960_dai_links,
110 struct snd_soc_dai_link *dai_link; in mt2701_wm8960_machine_probe() local
119 for_each_card_prelinks(card, i, dai_link) { in mt2701_wm8960_machine_probe()
120 if (dai_link->platforms->name) in mt2701_wm8960_machine_probe()
122 dai_link->platforms->of_node = platform_node; in mt2701_wm8960_machine_probe()
135 for_each_card_prelinks(card, i, dai_link) { in mt2701_wm8960_machine_probe()
136 if (dai_link->codecs->name) in mt2701_wm8960_machine_probe()
138 dai_link->codecs->of_node = codec_node; in mt2701_wm8960_machine_probe()
Dmt2701-cs42448.c319 .dai_link = mt2701_cs42448_dai_links,
337 struct snd_soc_dai_link *dai_link; in mt2701_cs42448_machine_probe() local
348 for_each_card_prelinks(card, i, dai_link) { in mt2701_cs42448_machine_probe()
349 if (dai_link->platforms->name) in mt2701_cs42448_machine_probe()
351 dai_link->platforms->of_node = platform_node; in mt2701_cs42448_machine_probe()
363 for_each_card_prelinks(card, i, dai_link) { in mt2701_cs42448_machine_probe()
364 if (dai_link->codecs->name) in mt2701_cs42448_machine_probe()
366 dai_link->codecs->of_node = codec_node; in mt2701_cs42448_machine_probe()
/kernel/linux/linux-5.10/sound/soc/atmel/
Datmel-classd.c467 struct snd_soc_dai_link *dai_link; in atmel_classd_asoc_card_init() local
471 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_classd_asoc_card_init()
472 if (!dai_link) in atmel_classd_asoc_card_init()
479 dai_link->cpus = &comp[0]; in atmel_classd_asoc_card_init()
480 dai_link->codecs = &comp[1]; in atmel_classd_asoc_card_init()
481 dai_link->platforms = &comp[2]; in atmel_classd_asoc_card_init()
483 dai_link->num_cpus = 1; in atmel_classd_asoc_card_init()
484 dai_link->num_codecs = 1; in atmel_classd_asoc_card_init()
485 dai_link->num_platforms = 1; in atmel_classd_asoc_card_init()
487 dai_link->name = "CLASSD"; in atmel_classd_asoc_card_init()
[all …]
Datmel-pdmic.c490 struct snd_soc_dai_link *dai_link; in atmel_pdmic_asoc_card_init() local
494 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_pdmic_asoc_card_init()
495 if (!dai_link) in atmel_pdmic_asoc_card_init()
502 dai_link->cpus = &comp[0]; in atmel_pdmic_asoc_card_init()
503 dai_link->codecs = &comp[1]; in atmel_pdmic_asoc_card_init()
504 dai_link->platforms = &comp[2]; in atmel_pdmic_asoc_card_init()
506 dai_link->num_cpus = 1; in atmel_pdmic_asoc_card_init()
507 dai_link->num_codecs = 1; in atmel_pdmic_asoc_card_init()
508 dai_link->num_platforms = 1; in atmel_pdmic_asoc_card_init()
510 dai_link->name = "PDMIC"; in atmel_pdmic_asoc_card_init()
[all …]
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8173/
Dmt8173-max98090.c136 .dai_link = mt8173_max98090_dais,
150 struct snd_soc_dai_link *dai_link; in mt8173_max98090_dev_probe() local
159 for_each_card_prelinks(card, i, dai_link) { in mt8173_max98090_dev_probe()
160 if (dai_link->platforms->name) in mt8173_max98090_dev_probe()
162 dai_link->platforms->of_node = platform_node; in mt8173_max98090_dev_probe()
173 for_each_card_prelinks(card, i, dai_link) { in mt8173_max98090_dev_probe()
174 if (dai_link->codecs->name) in mt8173_max98090_dev_probe()
176 dai_link->codecs->of_node = codec_node; in mt8173_max98090_dev_probe()
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl-asoc-card.c86 struct snd_soc_dai_link dai_link[3]; member
598 memcpy(priv->dai_link, fsl_asoc_card_dai, in fsl_asoc_card_probe()
599 sizeof(struct snd_soc_dai_link) * ARRAY_SIZE(priv->dai_link)); in fsl_asoc_card_probe()
644 priv->dai_link[1].dpcm_capture = 0; in fsl_asoc_card_probe()
645 priv->dai_link[2].dpcm_capture = 0; in fsl_asoc_card_probe()
651 priv->dai_link[1].dpcm_capture = 0; in fsl_asoc_card_probe()
652 priv->dai_link[2].dpcm_capture = 0; in fsl_asoc_card_probe()
730 priv->card.dai_link = priv->dai_link; in fsl_asoc_card_probe()
748 priv->dai_link[0].cpus->of_node = cpu_np; in fsl_asoc_card_probe()
749 priv->dai_link[0].codecs->dai_name = codec_dai_name; in fsl_asoc_card_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/mediatek/mt6797/
Dmt6797-mt6351.c190 .dai_link = mt6797_mt6351_dai_links,
198 struct snd_soc_dai_link *dai_link; in mt6797_mt6351_dev_probe() local
209 for_each_card_prelinks(card, i, dai_link) { in mt6797_mt6351_dev_probe()
210 if (dai_link->platforms->name) in mt6797_mt6351_dev_probe()
212 dai_link->platforms->of_node = platform_node; in mt6797_mt6351_dev_probe()
223 for_each_card_prelinks(card, i, dai_link) { in mt6797_mt6351_dev_probe()
224 if (dai_link->codecs->name) in mt6797_mt6351_dev_probe()
226 dai_link->codecs->of_node = codec_node; in mt6797_mt6351_dev_probe()
/kernel/linux/linux-5.10/sound/soc/au1x/
Ddb1200.c64 .dai_link = &db1200_ac97_dai,
82 .dai_link = &db1300_ac97_dai,
89 .dai_link = &db1200_ac97_dai,
128 .dai_link = &db1200_i2s_dai,
149 .dai_link = &db1300_i2s_dai,
170 .dai_link = &db1550_i2s_dai,

12345678