Lines Matching refs:dl
20 struct snd_soc_dai_link *dl; in avs_create_dai_links() local
25 dl = devm_kcalloc(dev, pcm_count, sizeof(*dl), GFP_KERNEL); in avs_create_dai_links()
27 if (!dl || !platform) in avs_create_dai_links()
34 dl[i].name = devm_kasprintf(dev, GFP_KERNEL, "%s link%d", cname, i); in avs_create_dai_links()
35 if (!dl[i].name) in avs_create_dai_links()
38 dl[i].id = i; in avs_create_dai_links()
39 dl[i].nonatomic = 1; in avs_create_dai_links()
40 dl[i].no_pcm = 1; in avs_create_dai_links()
41 dl[i].dpcm_playback = 1; in avs_create_dai_links()
42 dl[i].dpcm_capture = 1; in avs_create_dai_links()
43 dl[i].platforms = platform; in avs_create_dai_links()
44 dl[i].num_platforms = 1; in avs_create_dai_links()
45 dl[i].ignore_pmdown_time = 1; in avs_create_dai_links()
47 dl[i].codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_links()
48 dl[i].cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_links()
49 if (!dl[i].codecs || !dl[i].cpus) in avs_create_dai_links()
52 dl[i].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "%s-cpu%d", cname, i); in avs_create_dai_links()
53 if (!dl[i].cpus->dai_name) in avs_create_dai_links()
56 dl[i].codecs->name = devm_kstrdup(dev, cname, GFP_KERNEL); in avs_create_dai_links()
57 dl[i].codecs->dai_name = pcm->name; in avs_create_dai_links()
58 dl[i].num_codecs = 1; in avs_create_dai_links()
59 dl[i].num_cpus = 1; in avs_create_dai_links()
62 *links = dl; in avs_create_dai_links()