Lines Matching refs:links

419 	struct snd_soc_dai_link *links;  in acp_sofdsp_dai_links_create()  local
431 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * num_links, GFP_KERNEL); in acp_sofdsp_dai_links_create()
432 if (!links) in acp_sofdsp_dai_links_create()
436 links[i].name = "acp-headset-codec"; in acp_sofdsp_dai_links_create()
437 links[i].id = HEADSET_BE_ID; in acp_sofdsp_dai_links_create()
438 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create()
439 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
440 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
441 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
442 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
443 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
444 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
445 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
448 links[i].codecs = dummy_codec; in acp_sofdsp_dai_links_create()
449 links[i].num_codecs = ARRAY_SIZE(dummy_codec); in acp_sofdsp_dai_links_create()
452 links[i].codecs = rt5682; in acp_sofdsp_dai_links_create()
453 links[i].num_codecs = ARRAY_SIZE(rt5682); in acp_sofdsp_dai_links_create()
454 links[i].init = acp_card_rt5682_init; in acp_sofdsp_dai_links_create()
455 links[i].ops = &acp_card_rt5682_ops; in acp_sofdsp_dai_links_create()
458 links[i].codecs = rt5682s; in acp_sofdsp_dai_links_create()
459 links[i].num_codecs = ARRAY_SIZE(rt5682s); in acp_sofdsp_dai_links_create()
460 links[i].init = acp_card_rt5682s_init; in acp_sofdsp_dai_links_create()
461 links[i].ops = &acp_card_rt5682s_ops; in acp_sofdsp_dai_links_create()
467 links[i].name = "acp-amp-codec"; in acp_sofdsp_dai_links_create()
468 links[i].id = AMP_BE_ID; in acp_sofdsp_dai_links_create()
469 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create()
470 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
471 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
472 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
473 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
474 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
475 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
478 links[i].codecs = dummy_codec; in acp_sofdsp_dai_links_create()
479 links[i].num_codecs = ARRAY_SIZE(dummy_codec); in acp_sofdsp_dai_links_create()
482 links[i].codecs = rt1019; in acp_sofdsp_dai_links_create()
483 links[i].num_codecs = ARRAY_SIZE(rt1019); in acp_sofdsp_dai_links_create()
484 links[i].ops = &acp_card_rt1019_ops; in acp_sofdsp_dai_links_create()
485 links[i].init = acp_card_rt1019_init; in acp_sofdsp_dai_links_create()
490 links[i].codecs = max98360a; in acp_sofdsp_dai_links_create()
491 links[i].num_codecs = ARRAY_SIZE(max98360a); in acp_sofdsp_dai_links_create()
492 links[i].ops = &acp_card_maxim_ops; in acp_sofdsp_dai_links_create()
493 links[i].init = acp_card_maxim_init; in acp_sofdsp_dai_links_create()
499 links[i].name = "acp-dmic-codec"; in acp_sofdsp_dai_links_create()
500 links[i].id = DMIC_BE_ID; in acp_sofdsp_dai_links_create()
501 links[i].codecs = dmic_codec; in acp_sofdsp_dai_links_create()
502 links[i].num_codecs = ARRAY_SIZE(dmic_codec); in acp_sofdsp_dai_links_create()
503 links[i].cpus = sof_dmic; in acp_sofdsp_dai_links_create()
504 links[i].num_cpus = ARRAY_SIZE(sof_dmic); in acp_sofdsp_dai_links_create()
505 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
506 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
507 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
508 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
509 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
512 card->dai_link = links; in acp_sofdsp_dai_links_create()
521 struct snd_soc_dai_link *links; in acp_legacy_dai_links_create() local
533 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * num_links, GFP_KERNEL); in acp_legacy_dai_links_create()
536 links[i].name = "acp-headset-codec"; in acp_legacy_dai_links_create()
537 links[i].id = HEADSET_BE_ID; in acp_legacy_dai_links_create()
538 links[i].cpus = i2s_sp; in acp_legacy_dai_links_create()
539 links[i].num_cpus = ARRAY_SIZE(i2s_sp); in acp_legacy_dai_links_create()
540 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
541 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
542 links[i].dpcm_playback = 1; in acp_legacy_dai_links_create()
543 links[i].dpcm_capture = 1; in acp_legacy_dai_links_create()
546 links[i].codecs = dummy_codec; in acp_legacy_dai_links_create()
547 links[i].num_codecs = ARRAY_SIZE(dummy_codec); in acp_legacy_dai_links_create()
550 links[i].codecs = rt5682; in acp_legacy_dai_links_create()
551 links[i].num_codecs = ARRAY_SIZE(rt5682); in acp_legacy_dai_links_create()
552 links[i].init = acp_card_rt5682_init; in acp_legacy_dai_links_create()
553 links[i].ops = &acp_card_rt5682_ops; in acp_legacy_dai_links_create()
556 links[i].codecs = rt5682s; in acp_legacy_dai_links_create()
557 links[i].num_codecs = ARRAY_SIZE(rt5682s); in acp_legacy_dai_links_create()
558 links[i].init = acp_card_rt5682s_init; in acp_legacy_dai_links_create()
559 links[i].ops = &acp_card_rt5682s_ops; in acp_legacy_dai_links_create()
565 links[i].name = "acp-amp-codec"; in acp_legacy_dai_links_create()
566 links[i].id = AMP_BE_ID; in acp_legacy_dai_links_create()
567 links[i].cpus = i2s_sp; in acp_legacy_dai_links_create()
568 links[i].num_cpus = ARRAY_SIZE(i2s_sp); in acp_legacy_dai_links_create()
569 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
570 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
571 links[i].dpcm_playback = 1; in acp_legacy_dai_links_create()
574 links[i].codecs = dummy_codec; in acp_legacy_dai_links_create()
575 links[i].num_codecs = ARRAY_SIZE(dummy_codec); in acp_legacy_dai_links_create()
578 links[i].codecs = rt1019; in acp_legacy_dai_links_create()
579 links[i].num_codecs = ARRAY_SIZE(rt1019); in acp_legacy_dai_links_create()
580 links[i].ops = &acp_card_rt1019_ops; in acp_legacy_dai_links_create()
581 links[i].init = acp_card_rt1019_init; in acp_legacy_dai_links_create()
586 links[i].codecs = max98360a; in acp_legacy_dai_links_create()
587 links[i].num_codecs = ARRAY_SIZE(max98360a); in acp_legacy_dai_links_create()
588 links[i].ops = &acp_card_maxim_ops; in acp_legacy_dai_links_create()
589 links[i].init = acp_card_maxim_init; in acp_legacy_dai_links_create()
593 card->dai_link = links; in acp_legacy_dai_links_create()