Lines Matching full:links
24 struct snd_soc_dai_link *links, in sof_nocodec_bes_setup() argument
30 if (!drv || !links || !card) in sof_nocodec_bes_setup()
39 links[i].name = devm_kasprintf(dev, GFP_KERNEL, in sof_nocodec_bes_setup()
41 if (!links[i].name) in sof_nocodec_bes_setup()
44 links[i].stream_name = links[i].name; in sof_nocodec_bes_setup()
46 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup()
47 links[i].codecs = &snd_soc_dummy_dlc; in sof_nocodec_bes_setup()
48 links[i].platforms = &dlc[1]; in sof_nocodec_bes_setup()
50 links[i].num_cpus = 1; in sof_nocodec_bes_setup()
51 links[i].num_codecs = 1; in sof_nocodec_bes_setup()
52 links[i].num_platforms = 1; in sof_nocodec_bes_setup()
54 links[i].id = i; in sof_nocodec_bes_setup()
55 links[i].no_pcm = 1; in sof_nocodec_bes_setup()
56 links[i].cpus->dai_name = drv[i].name; in sof_nocodec_bes_setup()
57 links[i].platforms->name = dev_name(dev->parent); in sof_nocodec_bes_setup()
59 links[i].dpcm_playback = 1; in sof_nocodec_bes_setup()
61 links[i].dpcm_capture = 1; in sof_nocodec_bes_setup()
63 links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; in sof_nocodec_bes_setup()
66 card->dai_link = links; in sof_nocodec_bes_setup()
76 struct snd_soc_dai_link *links; in sof_nocodec_setup() local
79 links = devm_kcalloc(dev, num_dai_drivers, sizeof(struct snd_soc_dai_link), GFP_KERNEL); in sof_nocodec_setup()
80 if (!links) in sof_nocodec_setup()
83 return sof_nocodec_bes_setup(dev, dai_drivers, links, num_dai_drivers, &sof_nocodec_card); in sof_nocodec_setup()