Lines Matching refs:dl
118 struct snd_soc_dai_link *dl; in avs_create_dai_link() local
120 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
122 if (!dl || !platform) in avs_create_dai_link()
127 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
128 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
129 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
130 if (!dl->name || !dl->cpus || !dl->codecs) in avs_create_dai_link()
133 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
134 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-DLGS7219:00"); in avs_create_dai_link()
135 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, DA7219_DAI_NAME); in avs_create_dai_link()
136 if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name) in avs_create_dai_link()
139 dl->num_cpus = 1; in avs_create_dai_link()
140 dl->num_codecs = 1; in avs_create_dai_link()
141 dl->platforms = platform; in avs_create_dai_link()
142 dl->num_platforms = 1; in avs_create_dai_link()
143 dl->id = 0; in avs_create_dai_link()
144 dl->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS; in avs_create_dai_link()
145 dl->init = avs_da7219_codec_init; in avs_create_dai_link()
146 dl->nonatomic = 1; in avs_create_dai_link()
147 dl->no_pcm = 1; in avs_create_dai_link()
148 dl->dpcm_capture = 1; in avs_create_dai_link()
149 dl->dpcm_playback = 1; in avs_create_dai_link()
151 *dai_link = dl; in avs_create_dai_link()