Lines Matching refs:links

630 	struct snd_soc_dai_link *links;  in sof_card_dai_links_create()  local
633 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * in sof_card_dai_links_create()
637 if (!links || !cpus) in sof_card_dai_links_create()
641 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
643 if (!links[id].name) in sof_card_dai_links_create()
646 links[id].id = id; in sof_card_dai_links_create()
648 links[id].codecs = rt5682s_component; in sof_card_dai_links_create()
649 links[id].num_codecs = ARRAY_SIZE(rt5682s_component); in sof_card_dai_links_create()
651 links[id].codecs = rt5682_component; in sof_card_dai_links_create()
652 links[id].num_codecs = ARRAY_SIZE(rt5682_component); in sof_card_dai_links_create()
654 links[id].platforms = platform_component; in sof_card_dai_links_create()
655 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
656 links[id].init = sof_rt5682_codec_init; in sof_card_dai_links_create()
657 links[id].exit = sof_rt5682_codec_exit; in sof_card_dai_links_create()
658 links[id].ops = &sof_rt5682_ops; in sof_card_dai_links_create()
659 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
660 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
661 links[id].no_pcm = 1; in sof_card_dai_links_create()
662 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
663 links[id].num_cpus = 1; in sof_card_dai_links_create()
665 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
668 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
680 links[id].ignore_pmdown_time = 1; in sof_card_dai_links_create()
681 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
684 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
692 links[id].name = "dmic01"; in sof_card_dai_links_create()
693 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
694 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create()
695 links[id].init = dmic_init; in sof_card_dai_links_create()
698 links[id + 1].name = "dmic16k"; in sof_card_dai_links_create()
699 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create()
700 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create()
706 links[id].id = id; in sof_card_dai_links_create()
707 links[id].num_cpus = 1; in sof_card_dai_links_create()
708 links[id].codecs = dmic_component; in sof_card_dai_links_create()
709 links[id].num_codecs = ARRAY_SIZE(dmic_component); in sof_card_dai_links_create()
710 links[id].platforms = platform_component; in sof_card_dai_links_create()
711 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
712 links[id].ignore_suspend = 1; in sof_card_dai_links_create()
713 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
714 links[id].no_pcm = 1; in sof_card_dai_links_create()
727 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
729 if (!links[id].name) in sof_card_dai_links_create()
732 links[id].id = id; in sof_card_dai_links_create()
733 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
734 links[id].num_cpus = 1; in sof_card_dai_links_create()
735 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
737 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
748 links[id].codecs = &idisp_components[i - 1]; in sof_card_dai_links_create()
749 links[id].num_codecs = 1; in sof_card_dai_links_create()
750 links[id].platforms = platform_component; in sof_card_dai_links_create()
751 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
752 links[id].init = sof_hdmi_init; in sof_card_dai_links_create()
753 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
754 links[id].no_pcm = 1; in sof_card_dai_links_create()
760 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
762 if (!links[id].name) in sof_card_dai_links_create()
765 links[id].id = id; in sof_card_dai_links_create()
767 links[id].codecs = rt1015_components; in sof_card_dai_links_create()
768 links[id].num_codecs = ARRAY_SIZE(rt1015_components); in sof_card_dai_links_create()
769 links[id].init = speaker_codec_init_lr; in sof_card_dai_links_create()
770 links[id].ops = &sof_rt1015_ops; in sof_card_dai_links_create()
772 sof_rt1015p_dai_link(&links[id]); in sof_card_dai_links_create()
775 links[id].codecs = max_98373_components; in sof_card_dai_links_create()
776 links[id].num_codecs = ARRAY_SIZE(max_98373_components); in sof_card_dai_links_create()
777 links[id].init = max_98373_spk_codec_init; in sof_card_dai_links_create()
778 links[id].ops = &max_98373_ops; in sof_card_dai_links_create()
780 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
783 max_98360a_dai_link(&links[id]); in sof_card_dai_links_create()
786 sof_rt1011_dai_link(&links[id]); in sof_card_dai_links_create()
788 max_98357a_dai_link(&links[id]); in sof_card_dai_links_create()
790 links[id].platforms = platform_component; in sof_card_dai_links_create()
791 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
792 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
793 links[id].no_pcm = 1; in sof_card_dai_links_create()
794 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
795 links[id].num_cpus = 1; in sof_card_dai_links_create()
797 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
800 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
804 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
807 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
818 links[id].id = id; in sof_card_dai_links_create()
819 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
820 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
822 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
824 links[id].name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-BT", port); in sof_card_dai_links_create()
825 if (!links[id].name) in sof_card_dai_links_create()
827 links[id].codecs = dummy_component; in sof_card_dai_links_create()
828 links[id].num_codecs = ARRAY_SIZE(dummy_component); in sof_card_dai_links_create()
829 links[id].platforms = platform_component; in sof_card_dai_links_create()
830 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
831 links[id].dpcm_playback = 1; in sof_card_dai_links_create()
832 links[id].dpcm_capture = 1; in sof_card_dai_links_create()
833 links[id].no_pcm = 1; in sof_card_dai_links_create()
834 links[id].num_cpus = 1; in sof_card_dai_links_create()
837 return links; in sof_card_dai_links_create()