[PATCH v3 14/16] ASoC: rich-graph-card-sample.dtsi: add DPCM sample (Multi)
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Fri Sep 10 03:23:14 CEST 2021
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
This patch adds DPCM link Multi-CPU/Codec sample to
rich-graph-card-sample.dtsi.
This sample is assuming MIXer connection.
One note is that Multi-FE is not supported on ASoC
FE BE
**** +-+
CPU5 -- * * -- | | -- Codec4
CPU6 -- * * | | -- Codec5
**** +-+
This reverts commit 674bf04819aaf63b98c83e803ff920e35e315d08.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/generic/rich-graph-card-sample.dtsi | 36 ++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/sound/soc/generic/rich-graph-card-sample.dtsi b/sound/soc/generic/rich-graph-card-sample.dtsi
index 2402827bbdaf..25b9c52cb072 100644
--- a/sound/soc/generic/rich-graph-card-sample.dtsi
+++ b/sound/soc/generic/rich-graph-card-sample.dtsi
@@ -37,6 +37,17 @@ / {
* cpu3 <- at --* *-- at -> codec3
* cpu4 <- at --* *
* ****
+ *
+ * [DPCM-Multi]
+ *
+ * --NOTE--
+ * Multi-FE is not supported by ASoC.
+ *
+ * FE BE
+ * **** +-+
+ * cpu5 <- at --* *-- at -> | | -> codec4
+ * cpu6 <- at --* * | | -> codec5
+ * **** +-+
*/
rich-graph-card-sample {
/*
@@ -51,11 +62,22 @@ rich-graph-card-sample {
routing = "TC DAI3 Playback", "DAI3 Playback",
"TC DAI3 Playback", "DAI4 Playback",
"DAI3 Capture", "TC DAI3 Capture",
- "DAI4 Capture", "TC DAI3 Capture";
+ "DAI4 Capture", "TC DAI3 Capture",
+ /* for [DPCM-Multi] */
+ /* BE FE */
+ "TC DAI4 Playback", "DAI5 Playback",
+ "TC DAI5 Playback", "DAI5 Playback",
+ "TC DAI4 Playback", "DAI6 Playback",
+ "TC DAI5 Playback", "DAI6 Playback",
+ "DAI5 Capture", "TC DAI4 Capture",
+ "DAI5 Capture", "TC DAI5 Capture",
+ "DAI6 Capture", "TC DAI4 Capture",
+ "DAI6 Capture", "TC DAI5 Capture";
links = <&cpu0 /* normal: cpu side only */
&mcpu0 /* multi: cpu side only */
&fe00 &fe01 &be0 /* dpcm: both FE / BE */
+ &fe10 &fe11 &be1 /* dpcm-m: both FE / BE */
>;
multi {
@@ -69,6 +91,11 @@ ports at 1 {
port at 1 { mcodec1_ep: endpoint { remote-endpoint = <&codec1_ep>; }; };
port at 2 { mcodec2_ep: endpoint { remote-endpoint = <&codec2_ep>; }; };
};
+ ports at 2 {
+ port at 0 { mbe_ep: endpoint { remote-endpoint = <&be10_ep>; }; };
+ port at 1 { mbe1_ep: endpoint { remote-endpoint = <&codec4_ep>; }; };
+ port at 2 { mbe2_ep: endpoint { remote-endpoint = <&codec5_ep>; }; };
+ };
};
dpcm {
@@ -76,10 +103,13 @@ dpcm {
ports at 0 {
fe00: port at 0 { fe00_ep: endpoint { remote-endpoint = <&cpu3_ep>; }; };
fe01: port at 1 { fe01_ep: endpoint { remote-endpoint = <&cpu4_ep>; }; };
+ fe10: port at 2 { fe10_ep: endpoint { remote-endpoint = <&cpu5_ep>; }; };
+ fe11: port at 3 { fe11_ep: endpoint { remote-endpoint = <&cpu6_ep>; }; };
};
/* BE */
ports at 1 {
be0: port at 0 { be00_ep: endpoint { remote-endpoint = <&codec3_ep>; }; };
+ be1: port at 1 { be10_ep: endpoint { remote-endpoint = <&mbe_ep>; }; };
};
};
};
@@ -101,6 +131,8 @@ ports {
port at 2 { cpu2_ep: endpoint { remote-endpoint = <&mcpu2_ep>; }; };
port at 3 { cpu3_ep: endpoint { remote-endpoint = <&fe00_ep>; }; };
port at 4 { cpu4_ep: endpoint { remote-endpoint = <&fe01_ep>; }; };
+ port at 5 { cpu5_ep: endpoint { remote-endpoint = <&fe10_ep>; }; };
+ port at 6 { cpu6_ep: endpoint { remote-endpoint = <&fe11_ep>; }; };
};
};
@@ -124,6 +156,8 @@ ports {
port at 1 { codec1_ep: endpoint { remote-endpoint = <&mcodec1_ep>; }; };
port at 2 { codec2_ep: endpoint { remote-endpoint = <&mcodec2_ep>; }; };
port at 3 { codec3_ep: endpoint { remote-endpoint = <&be00_ep>; }; };
+ port at 4 { codec4_ep: endpoint { remote-endpoint = <&mbe1_ep>; }; };
+ port at 5 { codec5_ep: endpoint { remote-endpoint = <&mbe2_ep>; }; };
};
};
};
--
2.25.1
More information about the Alsa-devel
mailing list