Lines Matching refs:links
327 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local
333 links = devm_kcalloc(dev, sof_es8336_card.num_links, in sof_card_dai_links_create()
337 if (!links || !cpus) in sof_card_dai_links_create()
341 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
343 if (!links[id].name) in sof_card_dai_links_create()
346 links[id].id = id; in sof_card_dai_links_create()
347 links[id].codecs = ssp1_codec; in sof_card_dai_links_create()
348 links[id].num_codecs = ARRAY_SIZE(ssp1_codec); in sof_card_dai_links_create()
349 links[id].platforms = platform_component; in sof_card_dai_links_create()
350 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
351 links[id].init = sof_es8316_init; in sof_card_dai_links_create()
352 links[id].exit = sof_es8316_exit; in sof_card_dai_links_create()
353 links[id].ops = &sof_es8336_ops; in sof_card_dai_links_create()
354 links[id].nonatomic = true; in sof_card_dai_links_create()
355 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
356 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
357 links[id].no_pcm = 1; in sof_card_dai_links_create()
358 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
359 links[id].num_cpus = 1; in sof_card_dai_links_create()
361 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
364 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
372 links[id].name = "dmic01"; in sof_card_dai_links_create()
373 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
374 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create()
375 links[id].init = dmic_init; in sof_card_dai_links_create()
378 links[id + 1].name = "dmic16k"; in sof_card_dai_links_create()
379 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create()
380 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create()
389 links[id].id = id; in sof_card_dai_links_create()
390 links[id].num_cpus = 1; in sof_card_dai_links_create()
391 links[id].codecs = dmic_component; in sof_card_dai_links_create()
392 links[id].num_codecs = ARRAY_SIZE(dmic_component); in sof_card_dai_links_create()
393 links[id].platforms = platform_component; in sof_card_dai_links_create()
394 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
395 links[id].ignore_suspend = 1; in sof_card_dai_links_create()
396 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
397 links[id].no_pcm = 1; in sof_card_dai_links_create()
412 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
414 if (!links[id].name) in sof_card_dai_links_create()
417 links[id].id = id + hdmi_id_offset; in sof_card_dai_links_create()
418 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
419 links[id].num_cpus = 1; in sof_card_dai_links_create()
420 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
422 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
433 links[id].codecs = &idisp_components[i - 1]; in sof_card_dai_links_create()
434 links[id].num_codecs = 1; in sof_card_dai_links_create()
435 links[id].platforms = platform_component; in sof_card_dai_links_create()
436 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
437 links[id].init = sof_hdmi_init; in sof_card_dai_links_create()
438 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
439 links[id].no_pcm = 1; in sof_card_dai_links_create()
444 return links; in sof_card_dai_links_create()