Lines Matching refs:link_idx
614 static int j721e_soc_probe_cpb(struct j721e_priv *priv, int *link_idx, in j721e_soc_probe_cpb() argument
660 priv->dai_links[*link_idx].cpus = &compnent[comp_idx++]; in j721e_soc_probe_cpb()
661 priv->dai_links[*link_idx].num_cpus = 1; in j721e_soc_probe_cpb()
662 priv->dai_links[*link_idx].codecs = &compnent[comp_idx++]; in j721e_soc_probe_cpb()
663 priv->dai_links[*link_idx].num_codecs = 1; in j721e_soc_probe_cpb()
664 priv->dai_links[*link_idx].platforms = &compnent[comp_idx++]; in j721e_soc_probe_cpb()
665 priv->dai_links[*link_idx].num_platforms = 1; in j721e_soc_probe_cpb()
667 priv->dai_links[*link_idx].name = "CPB PCM3168A Playback"; in j721e_soc_probe_cpb()
668 priv->dai_links[*link_idx].stream_name = "CPB PCM3168A Analog"; in j721e_soc_probe_cpb()
669 priv->dai_links[*link_idx].cpus->of_node = dai_node; in j721e_soc_probe_cpb()
670 priv->dai_links[*link_idx].platforms->of_node = dai_node; in j721e_soc_probe_cpb()
671 priv->dai_links[*link_idx].codecs->of_node = codec_node; in j721e_soc_probe_cpb()
672 priv->dai_links[*link_idx].codecs->dai_name = "pcm3168a-dac"; in j721e_soc_probe_cpb()
673 priv->dai_links[*link_idx].playback_only = 1; in j721e_soc_probe_cpb()
674 priv->dai_links[*link_idx].id = J721E_AUDIO_DOMAIN_CPB; in j721e_soc_probe_cpb()
675 priv->dai_links[*link_idx].dai_fmt = J721E_DAI_FMT; in j721e_soc_probe_cpb()
676 priv->dai_links[*link_idx].init = j721e_audio_init; in j721e_soc_probe_cpb()
677 priv->dai_links[*link_idx].ops = &j721e_audio_ops; in j721e_soc_probe_cpb()
678 (*link_idx)++; in j721e_soc_probe_cpb()
680 priv->dai_links[*link_idx].cpus = &compnent[comp_idx++]; in j721e_soc_probe_cpb()
681 priv->dai_links[*link_idx].num_cpus = 1; in j721e_soc_probe_cpb()
682 priv->dai_links[*link_idx].codecs = &compnent[comp_idx++]; in j721e_soc_probe_cpb()
683 priv->dai_links[*link_idx].num_codecs = 1; in j721e_soc_probe_cpb()
684 priv->dai_links[*link_idx].platforms = &compnent[comp_idx++]; in j721e_soc_probe_cpb()
685 priv->dai_links[*link_idx].num_platforms = 1; in j721e_soc_probe_cpb()
687 priv->dai_links[*link_idx].name = "CPB PCM3168A Capture"; in j721e_soc_probe_cpb()
688 priv->dai_links[*link_idx].stream_name = "CPB PCM3168A Analog"; in j721e_soc_probe_cpb()
689 priv->dai_links[*link_idx].cpus->of_node = dai_node; in j721e_soc_probe_cpb()
690 priv->dai_links[*link_idx].platforms->of_node = dai_node; in j721e_soc_probe_cpb()
691 priv->dai_links[*link_idx].codecs->of_node = codec_node; in j721e_soc_probe_cpb()
692 priv->dai_links[*link_idx].codecs->dai_name = "pcm3168a-adc"; in j721e_soc_probe_cpb()
693 priv->dai_links[*link_idx].capture_only = 1; in j721e_soc_probe_cpb()
694 priv->dai_links[*link_idx].id = J721E_AUDIO_DOMAIN_CPB; in j721e_soc_probe_cpb()
695 priv->dai_links[*link_idx].dai_fmt = J721E_DAI_FMT; in j721e_soc_probe_cpb()
696 priv->dai_links[*link_idx].init = j721e_audio_init; in j721e_soc_probe_cpb()
697 priv->dai_links[*link_idx].ops = &j721e_audio_ops; in j721e_soc_probe_cpb()
698 (*link_idx)++; in j721e_soc_probe_cpb()
716 static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx, in j721e_soc_probe_ivi() argument
774 priv->dai_links[*link_idx].cpus = &compnent[comp_idx++]; in j721e_soc_probe_ivi()
775 priv->dai_links[*link_idx].num_cpus = 1; in j721e_soc_probe_ivi()
776 priv->dai_links[*link_idx].platforms = &compnent[comp_idx++]; in j721e_soc_probe_ivi()
777 priv->dai_links[*link_idx].num_platforms = 1; in j721e_soc_probe_ivi()
778 priv->dai_links[*link_idx].codecs = &compnent[comp_idx]; in j721e_soc_probe_ivi()
779 priv->dai_links[*link_idx].num_codecs = 2; in j721e_soc_probe_ivi()
782 priv->dai_links[*link_idx].name = "IVI 2xPCM3168A Playback"; in j721e_soc_probe_ivi()
783 priv->dai_links[*link_idx].stream_name = "IVI 2xPCM3168A Analog"; in j721e_soc_probe_ivi()
784 priv->dai_links[*link_idx].cpus->of_node = dai_node; in j721e_soc_probe_ivi()
785 priv->dai_links[*link_idx].platforms->of_node = dai_node; in j721e_soc_probe_ivi()
786 priv->dai_links[*link_idx].codecs[0].of_node = codeca_node; in j721e_soc_probe_ivi()
787 priv->dai_links[*link_idx].codecs[0].dai_name = "pcm3168a-dac"; in j721e_soc_probe_ivi()
788 priv->dai_links[*link_idx].codecs[1].of_node = codecb_node; in j721e_soc_probe_ivi()
789 priv->dai_links[*link_idx].codecs[1].dai_name = "pcm3168a-dac"; in j721e_soc_probe_ivi()
790 priv->dai_links[*link_idx].playback_only = 1; in j721e_soc_probe_ivi()
791 priv->dai_links[*link_idx].id = J721E_AUDIO_DOMAIN_IVI; in j721e_soc_probe_ivi()
792 priv->dai_links[*link_idx].dai_fmt = J721E_DAI_FMT; in j721e_soc_probe_ivi()
793 priv->dai_links[*link_idx].init = j721e_audio_init_ivi; in j721e_soc_probe_ivi()
794 priv->dai_links[*link_idx].ops = &j721e_audio_ops; in j721e_soc_probe_ivi()
795 (*link_idx)++; in j721e_soc_probe_ivi()
797 priv->dai_links[*link_idx].cpus = &compnent[comp_idx++]; in j721e_soc_probe_ivi()
798 priv->dai_links[*link_idx].num_cpus = 1; in j721e_soc_probe_ivi()
799 priv->dai_links[*link_idx].platforms = &compnent[comp_idx++]; in j721e_soc_probe_ivi()
800 priv->dai_links[*link_idx].num_platforms = 1; in j721e_soc_probe_ivi()
801 priv->dai_links[*link_idx].codecs = &compnent[comp_idx]; in j721e_soc_probe_ivi()
802 priv->dai_links[*link_idx].num_codecs = 2; in j721e_soc_probe_ivi()
804 priv->dai_links[*link_idx].name = "IVI 2xPCM3168A Capture"; in j721e_soc_probe_ivi()
805 priv->dai_links[*link_idx].stream_name = "IVI 2xPCM3168A Analog"; in j721e_soc_probe_ivi()
806 priv->dai_links[*link_idx].cpus->of_node = dai_node; in j721e_soc_probe_ivi()
807 priv->dai_links[*link_idx].platforms->of_node = dai_node; in j721e_soc_probe_ivi()
808 priv->dai_links[*link_idx].codecs[0].of_node = codeca_node; in j721e_soc_probe_ivi()
809 priv->dai_links[*link_idx].codecs[0].dai_name = "pcm3168a-adc"; in j721e_soc_probe_ivi()
810 priv->dai_links[*link_idx].codecs[1].of_node = codecb_node; in j721e_soc_probe_ivi()
811 priv->dai_links[*link_idx].codecs[1].dai_name = "pcm3168a-adc"; in j721e_soc_probe_ivi()
812 priv->dai_links[*link_idx].capture_only = 1; in j721e_soc_probe_ivi()
813 priv->dai_links[*link_idx].id = J721E_AUDIO_DOMAIN_IVI; in j721e_soc_probe_ivi()
814 priv->dai_links[*link_idx].dai_fmt = J721E_DAI_FMT; in j721e_soc_probe_ivi()
815 priv->dai_links[*link_idx].init = j721e_audio_init; in j721e_soc_probe_ivi()
816 priv->dai_links[*link_idx].ops = &j721e_audio_ops; in j721e_soc_probe_ivi()
817 (*link_idx)++; in j721e_soc_probe_ivi()