ASoC: audio-graph-card2-custom-sample: add missing CPU:Codec = 1:N sample
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 9 Jun 2023 01:40:41 +0000 (01:40 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jun 2023 09:44:41 +0000 (10:44 +0100)
It has CPU:Codec = 1:1 and N:N samples, but missing 1:N settings.
This patch adds it.

One note here is that because of registering timing, probing and
CPU/Codec numbering are mismatching.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87ilbx1kh3.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card2-custom-sample.dtsi

index 994db61a26b38db1a40d8679a2fdacf483c6772c..f5e7d669da45ea6e6e93c2368d668346f73798d6 100644 (file)
         * [Normal]
         *      cpu0 <-@-----------------> codec0
         *
+        * [Semi-Multi]
+        *
+        * CPU:Codec = 1:N
+        *
+        *                      +-+
+        *      cpu7 <-@------->| |-> codec12
+        *                      | |-> codec13
+        *                      +-+
+        *
         * [Multi-CPU/Codec]
         *              +-+             +-+
         *      cpu1 <--| |<-@--------->| |-> codec1
                         */
                         &cpu0
 
+                       /* [Semi-Multi] */
+                       &sm0
+
                        /*
                         * [Multi-CPU/Codec]: cpu side only
                         * cpu1/cpu2/codec1/codec2
                                port@1 { mc2c10_ep: endpoint { remote-endpoint = <&codec10_ep>; }; };
                                port@2 { mc2c11_ep: endpoint { remote-endpoint = <&codec11_ep>; }; };
                        };
+
+                       /* [Semi-Multi] */
+                       ports@5 {
+                               port@0 { smcodec0_ep: endpoint { remote-endpoint = <&cpu7_ep>;    }; };
+                               port@1 { smcodec1_ep: endpoint { remote-endpoint = <&codec12_ep>; }; };
+                               port@2 { smcodec2_ep: endpoint { remote-endpoint = <&codec13_ep>; }; };
+                       };
                };
 
                dpcm {
                        /* [DPCM-Multi]::FE */
                              port@5 { cpu5_ep: endpoint { remote-endpoint = <&fe10_ep>; }; };
                              port@6 { cpu6_ep: endpoint { remote-endpoint = <&fe11_ep>; }; };
+
+                       /* [Semi-Multi] */
+                       sm0:  port@7 { cpu7_ep: endpoint { remote-endpoint = <&smcodec0_ep>; }; };
                };
        };
 
                        port@9  { codec9_ep:  endpoint { remote-endpoint = <&mc2c01_ep>; }; };
                        port@10 { codec10_ep: endpoint { remote-endpoint = <&mc2c10_ep>; }; };
                        port@11 { codec11_ep: endpoint { remote-endpoint = <&mc2c11_ep>; }; };
+
+                       /* [Semi-Multi] */
+                       port@12 { codec12_ep: endpoint { remote-endpoint = <&smcodec1_ep>; }; };
+                       port@13 { codec13_ep: endpoint { remote-endpoint = <&smcodec2_ep>; }; };
                };
        };
 };