Lines Matching refs:links

226 	struct snd_soc_dai_link *links;  in sof_card_dai_links_create()  local
229 links = devm_kcalloc(dev, sof_audio_card_pcm512x.num_links, in sof_card_dai_links_create()
233 if (!links || !cpus) in sof_card_dai_links_create()
237 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
239 if (!links[id].name) in sof_card_dai_links_create()
242 links[id].id = id; in sof_card_dai_links_create()
243 links[id].codecs = pcm512x_component; in sof_card_dai_links_create()
244 links[id].num_codecs = ARRAY_SIZE(pcm512x_component); in sof_card_dai_links_create()
245 links[id].platforms = platform_component; in sof_card_dai_links_create()
246 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
247 links[id].init = sof_pcm512x_codec_init; in sof_card_dai_links_create()
248 links[id].ops = &sof_pcm512x_ops; in sof_card_dai_links_create()
249 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
254 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
255 links[id].no_pcm = 1; in sof_card_dai_links_create()
256 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
257 links[id].num_cpus = 1; in sof_card_dai_links_create()
259 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
262 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
265 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
268 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
276 links[id].name = "dmic01"; in sof_card_dai_links_create()
277 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
278 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create()
279 links[id].init = dmic_init; in sof_card_dai_links_create()
282 links[id + 1].name = "dmic16k"; in sof_card_dai_links_create()
283 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create()
284 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create()
290 links[id].id = id; in sof_card_dai_links_create()
291 links[id].num_cpus = 1; in sof_card_dai_links_create()
292 links[id].codecs = dmic_component; in sof_card_dai_links_create()
293 links[id].num_codecs = ARRAY_SIZE(dmic_component); in sof_card_dai_links_create()
294 links[id].platforms = platform_component; in sof_card_dai_links_create()
295 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
296 links[id].ignore_suspend = 1; in sof_card_dai_links_create()
297 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
298 links[id].no_pcm = 1; in sof_card_dai_links_create()
311 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
313 if (!links[id].name) in sof_card_dai_links_create()
316 links[id].id = id; in sof_card_dai_links_create()
317 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
318 links[id].num_cpus = 1; in sof_card_dai_links_create()
319 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
321 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
340 links[id].codecs = &idisp_components[i - 1]; in sof_card_dai_links_create()
341 links[id].num_codecs = 1; in sof_card_dai_links_create()
342 links[id].platforms = platform_component; in sof_card_dai_links_create()
343 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
344 links[id].init = sof_hdmi_init; in sof_card_dai_links_create()
345 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
346 links[id].no_pcm = 1; in sof_card_dai_links_create()
350 return links; in sof_card_dai_links_create()