Lines Matching refs:links
357 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local
360 links = devm_kcalloc(dev, sof_audio_card_nau8825.num_links, in sof_card_dai_links_create()
364 if (!links || !cpus) in sof_card_dai_links_create()
368 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
370 if (!links[id].name) in sof_card_dai_links_create()
373 links[id].id = id; in sof_card_dai_links_create()
374 links[id].codecs = nau8825_component; in sof_card_dai_links_create()
375 links[id].num_codecs = ARRAY_SIZE(nau8825_component); in sof_card_dai_links_create()
376 links[id].platforms = platform_component; in sof_card_dai_links_create()
377 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
378 links[id].init = sof_nau8825_codec_init; in sof_card_dai_links_create()
379 links[id].exit = sof_nau8825_codec_exit; in sof_card_dai_links_create()
380 links[id].ops = &sof_nau8825_ops; in sof_card_dai_links_create()
381 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
382 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
383 links[id].no_pcm = 1; in sof_card_dai_links_create()
384 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
385 links[id].num_cpus = 1; in sof_card_dai_links_create()
387 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
390 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
398 links[id].name = "dmic01"; in sof_card_dai_links_create()
399 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
400 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create()
401 links[id].init = dmic_init; in sof_card_dai_links_create()
404 links[id + 1].name = "dmic16k"; in sof_card_dai_links_create()
405 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create()
406 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create()
412 links[id].id = id; in sof_card_dai_links_create()
413 links[id].num_cpus = 1; in sof_card_dai_links_create()
414 links[id].codecs = dmic_component; in sof_card_dai_links_create()
415 links[id].num_codecs = ARRAY_SIZE(dmic_component); in sof_card_dai_links_create()
416 links[id].platforms = platform_component; in sof_card_dai_links_create()
417 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
418 links[id].ignore_suspend = 1; in sof_card_dai_links_create()
419 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
420 links[id].no_pcm = 1; in sof_card_dai_links_create()
434 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
436 if (!links[id].name) in sof_card_dai_links_create()
439 links[id].id = id; in sof_card_dai_links_create()
440 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
441 links[id].num_cpus = 1; in sof_card_dai_links_create()
442 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
444 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
455 links[id].codecs = &idisp_components[i - 1]; in sof_card_dai_links_create()
456 links[id].num_codecs = 1; in sof_card_dai_links_create()
457 links[id].platforms = platform_component; in sof_card_dai_links_create()
458 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
459 links[id].init = sof_hdmi_init; in sof_card_dai_links_create()
460 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
461 links[id].no_pcm = 1; in sof_card_dai_links_create()
467 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
469 if (!links[id].name) in sof_card_dai_links_create()
472 links[id].id = id; in sof_card_dai_links_create()
474 links[id].codecs = rt1019p_component; in sof_card_dai_links_create()
475 links[id].num_codecs = ARRAY_SIZE(rt1019p_component); in sof_card_dai_links_create()
476 links[id].init = speaker_codec_init; in sof_card_dai_links_create()
479 links[id].codecs = max_98373_components; in sof_card_dai_links_create()
480 links[id].num_codecs = ARRAY_SIZE(max_98373_components); in sof_card_dai_links_create()
481 links[id].init = max_98373_spk_codec_init; in sof_card_dai_links_create()
482 links[id].ops = &max_98373_ops; in sof_card_dai_links_create()
485 max_98360a_dai_link(&links[id]); in sof_card_dai_links_create()
487 sof_rt1015p_dai_link(&links[id]); in sof_card_dai_links_create()
490 links[id].codecs = nau8318_components; in sof_card_dai_links_create()
491 links[id].num_codecs = ARRAY_SIZE(nau8318_components); in sof_card_dai_links_create()
492 links[id].init = speaker_codec_init; in sof_card_dai_links_create()
497 links[id].platforms = platform_component; in sof_card_dai_links_create()
498 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
499 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
501 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
503 links[id].no_pcm = 1; in sof_card_dai_links_create()
504 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
505 links[id].num_cpus = 1; in sof_card_dai_links_create()
506 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
509 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
519 links[id].id = id; in sof_card_dai_links_create()
520 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
521 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
523 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
525 links[id].name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-BT", port); in sof_card_dai_links_create()
526 if (!links[id].name) in sof_card_dai_links_create()
528 links[id].codecs = &asoc_dummy_dlc; in sof_card_dai_links_create()
529 links[id].num_codecs = 1; in sof_card_dai_links_create()
530 links[id].platforms = platform_component; in sof_card_dai_links_create()
531 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
532 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
533 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
534 links[id].no_pcm = 1; in sof_card_dai_links_create()
535 links[id].num_cpus = 1; in sof_card_dai_links_create()
538 return links; in sof_card_dai_links_create()