Lines Matching refs:dl
21 struct snd_soc_dai_link *dl; in avs_create_dai_links() local
26 dl = devm_kcalloc(dev, pcm_count, sizeof(*dl), GFP_KERNEL); in avs_create_dai_links()
28 if (!dl || !platform) in avs_create_dai_links()
35 dl[i].name = devm_kasprintf(dev, GFP_KERNEL, "%s link%d", cname, i); in avs_create_dai_links()
36 if (!dl[i].name) in avs_create_dai_links()
39 dl[i].id = i; in avs_create_dai_links()
40 dl[i].nonatomic = 1; in avs_create_dai_links()
41 dl[i].no_pcm = 1; in avs_create_dai_links()
42 dl[i].dpcm_playback = 1; in avs_create_dai_links()
43 dl[i].dpcm_capture = 1; in avs_create_dai_links()
44 dl[i].platforms = platform; in avs_create_dai_links()
45 dl[i].num_platforms = 1; in avs_create_dai_links()
46 dl[i].ignore_pmdown_time = 1; in avs_create_dai_links()
48 dl[i].codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_links()
49 dl[i].cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_links()
50 if (!dl[i].codecs || !dl[i].cpus) in avs_create_dai_links()
53 dl[i].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "%s-cpu%d", cname, i); in avs_create_dai_links()
54 if (!dl[i].cpus->dai_name) in avs_create_dai_links()
57 dl[i].codecs->name = devm_kstrdup(dev, cname, GFP_KERNEL); in avs_create_dai_links()
58 if (!dl[i].codecs->name) in avs_create_dai_links()
61 dl[i].codecs->dai_name = pcm->name; in avs_create_dai_links()
62 dl[i].num_codecs = 1; in avs_create_dai_links()
63 dl[i].num_cpus = 1; in avs_create_dai_links()
66 *links = dl; in avs_create_dai_links()