Lines Matching refs: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 = &dlc[1]; in sof_nocodec_bes_setup()
48 links[i].platforms = &dlc[2]; 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()
58 links[i].codecs->dai_name = "snd-soc-dummy-dai"; in sof_nocodec_bes_setup()
59 links[i].codecs->name = "snd-soc-dummy"; in sof_nocodec_bes_setup()
61 links[i].dpcm_playback = 1; in sof_nocodec_bes_setup()
63 links[i].dpcm_capture = 1; in sof_nocodec_bes_setup()
65 links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; in sof_nocodec_bes_setup()
68 card->dai_link = links; in sof_nocodec_bes_setup()
78 struct snd_soc_dai_link *links; in sof_nocodec_setup() local
81 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * num_dai_drivers, GFP_KERNEL); in sof_nocodec_setup()
82 if (!links) in sof_nocodec_setup()
85 return sof_nocodec_bes_setup(dev, dai_drivers, links, num_dai_drivers, &sof_nocodec_card); in sof_nocodec_setup()