Home
last modified time | relevance | path

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

1234567

/Linux-v5.4/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 …]
Daudio-graph-card.c208 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of_dpcm() local
216 struct snd_soc_dai_link_component *cpus = dai_link->cpus; in graph_dai_link_of_dpcm()
217 struct snd_soc_dai_link_component *codecs = dai_link->codecs; in graph_dai_link_of_dpcm()
241 dai_link->dynamic = 1; in graph_dai_link_of_dpcm()
242 dai_link->dpcm_merged_format = 1; in graph_dai_link_of_dpcm()
247 ret = asoc_simple_parse_cpu(ep, dai_link, &is_single_links); in graph_dai_link_of_dpcm()
251 ret = asoc_simple_parse_clk_cpu(dev, ep, dai_link, dai); in graph_dai_link_of_dpcm()
255 ret = asoc_simple_set_dailink_name(dev, dai_link, in graph_dai_link_of_dpcm()
262 asoc_simple_canonicalize_cpu(dai_link, is_single_links); in graph_dai_link_of_dpcm()
272 dai_link->no_pcm = 1; in graph_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()
354 void asoc_simple_canonicalize_platform(struct snd_soc_dai_link *dai_link) in asoc_simple_canonicalize_platform() argument
357 if (!dai_link->platforms->of_node) in asoc_simple_canonicalize_platform()
358 dai_link->platforms->of_node = dai_link->cpus->of_node; in asoc_simple_canonicalize_platform()
364 if (!dai_link->platforms->of_node) in asoc_simple_canonicalize_platform()
365 dai_link->num_platforms = 0; in asoc_simple_canonicalize_platform()
[all …]
/Linux-v5.4/include/sound/
Dsimple_card_utils.h54 struct snd_soc_dai_link *dai_link; member
62 #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
78 struct snd_soc_dai_link *dai_link,
83 #define asoc_simple_parse_clk_cpu(dev, node, dai_link, simple_dai) \ argument
84 asoc_simple_parse_clk(dev, node, simple_dai, dai_link->cpus)
85 #define asoc_simple_parse_clk_codec(dev, node, dai_link, simple_dai) \ argument
86 asoc_simple_parse_clk(dev, node, simple_dai, dai_link->codecs)
99 #define asoc_simple_parse_cpu(node, dai_link, is_single_link) \ argument
100 asoc_simple_parse_dai(node, dai_link->cpus, is_single_link)
101 #define asoc_simple_parse_codec(node, dai_link) \ argument
[all …]
/Linux-v5.4/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()
106 card->dai_link = &storm_dai_link; in storm_platform_probe()
Dapq8016_sbc.c25 struct snd_soc_dai_link dai_link[]; /* dynamically allocated */ member
38 struct snd_soc_dai_link *dai_link = rtd->dai_link; in apq8016_sbc_dai_init() local
93 for (i = 0 ; i < dai_link->num_codecs; i++) { in apq8016_sbc_dai_init()
143 struct_size(data, dai_link, num_links), in apq8016_sbc_parse_of()
148 card->dai_link = &data->dai_link[0]; in apq8016_sbc_parse_of()
151 link = data->dai_link; in apq8016_sbc_parse_of()
/Linux-v5.4/sound/soc/
Dsoc-core.c342 const char *dai_link, int stream) in snd_soc_get_dai_substream() argument
347 if (rtd->dai_link->no_pcm && in snd_soc_get_dai_substream()
348 !strcmp(rtd->dai_link->name, dai_link)) in snd_soc_get_dai_substream()
351 dev_dbg(card->dev, "ASoC: failed to find dai link %s\n", dai_link); in snd_soc_get_dai_substream()
359 struct snd_soc_card *card, struct snd_soc_dai_link *dai_link) in soc_new_pcm_runtime() argument
369 rtd->dai_link = dai_link; in soc_new_pcm_runtime()
370 if (!rtd->dai_link->ops) in soc_new_pcm_runtime()
371 rtd->dai_link->ops = &null_snd_soc_ops; in soc_new_pcm_runtime()
373 rtd->codec_dais = kcalloc(dai_link->num_codecs, in soc_new_pcm_runtime()
413 const char *dai_link) in snd_soc_get_pcm_runtime() argument
[all …]
Dsoc-pcm.c118 if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time) in snd_soc_runtime_ignore_pmdown_time()
164 be->dai_link->name, event, dir); in dpcm_dapm_stream_event()
185 rtd->dai_link->symmetric_rates)) { in soc_pcm_apply_symmetry()
201 rtd->dai_link->symmetric_channels)) { in soc_pcm_apply_symmetry()
217 rtd->dai_link->symmetric_samplebits)) { in soc_pcm_apply_symmetry()
249 rtd->dai_link->symmetric_rates; in soc_pcm_params_symmetry()
261 rtd->dai_link->symmetric_channels; in soc_pcm_params_symmetry()
273 rtd->dai_link->symmetric_samplebits; in soc_pcm_params_symmetry()
291 struct snd_soc_dai_link *link = rtd->dai_link; in soc_pcm_has_symmetry()
538 if (rtd->dai_link->ops->startup) { in soc_pcm_open()
[all …]
Dsoc-compress.c99 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->startup) { in soc_compr_open()
100 ret = rtd->dai_link->compr_ops->startup(cstream); in soc_compr_open()
104 rtd->dai_link->name, ret); in soc_compr_open()
150 fe->dai_link->name, stream ? "capture" : "playback"); in soc_compr_open_fe()
182 if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->startup) { in soc_compr_open_fe()
183 ret = fe->dai_link->compr_ops->startup(cstream); in soc_compr_open_fe()
186 fe->dai_link->name, ret); in soc_compr_open_fe()
269 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->shutdown) in soc_compr_free()
270 rtd->dai_link->compr_ops->shutdown(cstream); in soc_compr_free()
336 if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->shutdown) in soc_compr_free_fe()
[all …]
/Linux-v5.4/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()
134 for_each_card_prelinks(card, i, dai_link) { in mt2701_wm8960_machine_probe()
135 if (dai_link->codecs->name) in mt2701_wm8960_machine_probe()
137 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()
/Linux-v5.4/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 …]
/Linux-v5.4/sound/soc/meson/
Daxg-card.c52 links = krealloc(priv->card.dai_link, in axg_card_reallocate_links()
53 num_links * sizeof(*priv->card.dai_link), in axg_card_reallocate_links()
64 priv->card.dai_link = links; in axg_card_reallocate_links()
117 if (card->dai_link) { in axg_card_clean_references()
131 kfree(card->dai_link); in axg_card_clean_references()
257 struct snd_soc_dai_link *pad = &card->dai_link[*index]; in axg_card_add_tdm_loopback()
267 lb = &card->dai_link[*index + 1]; in axg_card_add_tdm_loopback()
428 struct snd_soc_dai_link *link = &card->dai_link[*index]; in axg_card_parse_tdm()
561 struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; in axg_card_add_link() local
569 dai_link->cpus = cpu; in axg_card_add_link()
[all …]
/Linux-v5.4/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()
172 for_each_card_prelinks(card, i, dai_link) { in mt8173_max98090_dev_probe()
173 if (dai_link->codecs->name) in mt8173_max98090_dev_probe()
175 dai_link->codecs->of_node = codec_node; in mt8173_max98090_dev_probe()
Dmt8173-rt5650-rt5514.c166 .dai_link = mt8173_rt5650_rt5514_dais,
182 struct snd_soc_dai_link *dai_link; in mt8173_rt5650_rt5514_dev_probe() local
192 for_each_card_prelinks(card, i, dai_link) { in mt8173_rt5650_rt5514_dev_probe()
193 if (dai_link->platforms->name) in mt8173_rt5650_rt5514_dev_probe()
195 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5514_dev_probe()
/Linux-v5.4/sound/soc/fsl/
Dfsl-asoc-card.c84 struct snd_soc_dai_link dai_link[3]; member
259 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in fsl_asoc_card_set_bias_level()
612 priv->card.dai_link = priv->dai_link; in fsl_asoc_card_probe()
624 memcpy(priv->dai_link, fsl_asoc_card_dai, in fsl_asoc_card_probe()
625 sizeof(struct snd_soc_dai_link) * ARRAY_SIZE(priv->dai_link)); in fsl_asoc_card_probe()
634 priv->dai_link[0].cpus->of_node = cpu_np; in fsl_asoc_card_probe()
635 priv->dai_link[0].codecs->dai_name = codec_dai_name; in fsl_asoc_card_probe()
638 priv->dai_link[0].codecs->of_node = codec_np; in fsl_asoc_card_probe()
649 priv->dai_link[0].codecs->name = in fsl_asoc_card_probe()
653 if (!priv->dai_link[0].codecs->name) { in fsl_asoc_card_probe()
[all …]
Dpcm030-audio-fabric.c52 .dai_link = pcm030_fabric_dai,
62 struct snd_soc_dai_link *dai_link; in pcm030_fabric_probe() local
84 for_each_card_prelinks(card, i, dai_link) in pcm030_fabric_probe()
85 dai_link->platforms->of_node = platform_np; in pcm030_fabric_probe()
/Linux-v5.4/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()
222 for_each_card_prelinks(card, i, dai_link) { in mt6797_mt6351_dev_probe()
223 if (dai_link->codecs->name) in mt6797_mt6351_dev_probe()
225 dai_link->codecs->of_node = codec_node; in mt6797_mt6351_dev_probe()
/Linux-v5.4/sound/soc/atmel/
Datmel-classd.c498 struct snd_soc_dai_link *dai_link; in atmel_classd_asoc_card_init() local
502 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_classd_asoc_card_init()
503 if (!dai_link) in atmel_classd_asoc_card_init()
510 dai_link->cpus = &comp[0]; in atmel_classd_asoc_card_init()
511 dai_link->codecs = &comp[1]; in atmel_classd_asoc_card_init()
512 dai_link->platforms = &comp[2]; in atmel_classd_asoc_card_init()
514 dai_link->num_cpus = 1; in atmel_classd_asoc_card_init()
515 dai_link->num_codecs = 1; in atmel_classd_asoc_card_init()
516 dai_link->num_platforms = 1; in atmel_classd_asoc_card_init()
518 dai_link->name = "CLASSD"; in atmel_classd_asoc_card_init()
[all …]
Datmel-pdmic.c509 struct snd_soc_dai_link *dai_link; in atmel_pdmic_asoc_card_init() local
513 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_pdmic_asoc_card_init()
514 if (!dai_link) in atmel_pdmic_asoc_card_init()
521 dai_link->cpus = &comp[0]; in atmel_pdmic_asoc_card_init()
522 dai_link->codecs = &comp[1]; in atmel_pdmic_asoc_card_init()
523 dai_link->platforms = &comp[2]; in atmel_pdmic_asoc_card_init()
525 dai_link->num_cpus = 1; in atmel_pdmic_asoc_card_init()
526 dai_link->num_codecs = 1; in atmel_pdmic_asoc_card_init()
527 dai_link->num_platforms = 1; in atmel_pdmic_asoc_card_init()
529 dai_link->name = "PDMIC"; in atmel_pdmic_asoc_card_init()
[all …]
/Linux-v5.4/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,
/Linux-v5.4/sound/soc/samsung/
Darndale_rt5631.c74 .dai_link = arndale_rt5631_dai,
80 struct snd_soc_dai_link *dai_link; in arndale_put_of_nodes() local
83 for_each_card_prelinks(card, i, dai_link) { in arndale_put_of_nodes()
84 of_node_put(dai_link->cpus->of_node); in arndale_put_of_nodes()
85 of_node_put(dai_link->codecs->of_node); in arndale_put_of_nodes()
Dtm2_wm5110.c285 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in tm2_set_bias_level()
317 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[TM2_DAI_AIF1].name); in tm2_late_probe()
327 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[TM2_DAI_AIF2].name); 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].name); in bells_set_bias_level()
108 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); in bells_set_bias_level_post()
154 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_AP_DSP].name); in bells_late_probe()
157 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); in bells_late_probe()
197 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_CODEC_CP].name); in bells_late_probe()
209 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_CODEC_SUB].name); in bells_late_probe()
406 .dai_link = bells_dai_wm2200,
426 .dai_link = bells_dai_wm5102,
446 .dai_link = bells_dai_wm5110,
Dlittlemill.c25 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in littlemill_set_bias_level()
72 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in littlemill_set_bias_level_post()
183 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); in bbclk_ev()
266 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in littlemill_late_probe()
270 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); in littlemill_late_probe()
304 .dai_link = littlemill_dai,

1234567