Lines Matching refs:dl
101 struct snd_soc_dai_link *dl; in avs_create_dai_link() local
103 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
105 if (!dl || !platform) in avs_create_dai_link()
110 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
111 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
112 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs) * 2, GFP_KERNEL); in avs_create_dai_link()
113 if (!dl->name || !dl->cpus || !dl->codecs) in avs_create_dai_link()
116 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
117 dl->codecs[0].name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_DEV0_NAME); in avs_create_dai_link()
118 dl->codecs[0].dai_name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_CODEC_NAME); in avs_create_dai_link()
119 dl->codecs[1].name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_DEV1_NAME); in avs_create_dai_link()
120 dl->codecs[1].dai_name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_CODEC_NAME); in avs_create_dai_link()
121 if (!dl->cpus->dai_name || !dl->codecs[0].name || !dl->codecs[0].dai_name || in avs_create_dai_link()
122 !dl->codecs[1].name || !dl->codecs[1].dai_name) in avs_create_dai_link()
125 dl->num_cpus = 1; in avs_create_dai_link()
126 dl->num_codecs = 2; in avs_create_dai_link()
127 dl->platforms = platform; in avs_create_dai_link()
128 dl->num_platforms = 1; in avs_create_dai_link()
129 dl->id = 0; in avs_create_dai_link()
130 dl->dai_fmt = SND_SOC_DAIFMT_DSP_B | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC; in avs_create_dai_link()
131 dl->be_hw_params_fixup = avs_max98373_be_fixup; in avs_create_dai_link()
132 dl->nonatomic = 1; in avs_create_dai_link()
133 dl->no_pcm = 1; in avs_create_dai_link()
134 dl->dpcm_capture = 1; in avs_create_dai_link()
135 dl->dpcm_playback = 1; in avs_create_dai_link()
136 dl->ignore_pmdown_time = 1; in avs_create_dai_link()
137 dl->ops = &avs_max98373_ops; in avs_create_dai_link()
139 *dai_link = dl; in avs_create_dai_link()