Lines Matching refs:dl
170 struct snd_soc_dai_link *dl; in avs_create_dai_link() local
172 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
174 if (!dl || !platform) in avs_create_dai_link()
179 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
180 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
181 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
182 if (!dl->name || !dl->cpus || !dl->codecs) in avs_create_dai_link()
185 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
186 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-10EC5682:00"); in avs_create_dai_link()
187 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "rt5682-aif1"); in avs_create_dai_link()
188 if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name) in avs_create_dai_link()
191 dl->num_cpus = 1; in avs_create_dai_link()
192 dl->num_codecs = 1; in avs_create_dai_link()
193 dl->platforms = platform; in avs_create_dai_link()
194 dl->num_platforms = 1; in avs_create_dai_link()
195 dl->id = 0; in avs_create_dai_link()
196 dl->init = avs_rt5682_codec_init; in avs_create_dai_link()
197 dl->ops = &avs_rt5682_ops; in avs_create_dai_link()
198 dl->nonatomic = 1; in avs_create_dai_link()
199 dl->no_pcm = 1; in avs_create_dai_link()
200 dl->dpcm_capture = 1; in avs_create_dai_link()
201 dl->dpcm_playback = 1; in avs_create_dai_link()
203 *dai_link = dl; in avs_create_dai_link()