Lines Matching refs:dl
31 struct snd_soc_dai_link *dl; in avs_create_dai_link() local
33 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
35 if (!dl || !platform) in avs_create_dai_link()
40 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
41 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
42 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
43 if (!dl->name || !dl->cpus || !dl->codecs) in avs_create_dai_link()
46 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
47 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "MX98357A:00"); in avs_create_dai_link()
48 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "HiFi"); in avs_create_dai_link()
49 if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name) in avs_create_dai_link()
52 dl->num_cpus = 1; in avs_create_dai_link()
53 dl->num_codecs = 1; in avs_create_dai_link()
54 dl->platforms = platform; in avs_create_dai_link()
55 dl->num_platforms = 1; in avs_create_dai_link()
56 dl->id = 0; in avs_create_dai_link()
57 dl->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS; in avs_create_dai_link()
58 dl->nonatomic = 1; in avs_create_dai_link()
59 dl->no_pcm = 1; in avs_create_dai_link()
60 dl->dpcm_playback = 1; in avs_create_dai_link()
62 *dai_link = dl; in avs_create_dai_link()