[PATCH v4 15/16] ASoC: audio-graph-card2-custom-sample.dtsi: add Codec2Codec sample (Single)
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Wed Oct 6 02:35:56 CEST 2021
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
This patch adds Codec2Codec-Single sample to audio-graph-card2-custom-sample.dtsi.
Because it can use very basic connection only for now,
it can use only
- 2channels
- S32_LE format
Test-Component driver has "IN" and "OUT" widget. Thus the route is
+--+
| | <-- Codec6 <-- IN
| | --> Codec7 --> OUT
+--+
One note here is that it will start works when it boot.
In other words we can't stop it so far.
We need to update driver for it in the future.
...
asoc-audio-graph-card2-custom-sample: test_codec.7 <-> test_codec.6 mapping ok
test-component test_codec: test_dai_startup() : test_codec.6
test-component test_codec: test_dai_startup() : test_codec.7
...
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
.../audio-graph-card2-custom-sample.dtsi | 23 ++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/sound/soc/generic/audio-graph-card2-custom-sample.dtsi b/sound/soc/generic/audio-graph-card2-custom-sample.dtsi
index 4bc96e0aa447..f416dead9522 100644
--- a/sound/soc/generic/audio-graph-card2-custom-sample.dtsi
+++ b/sound/soc/generic/audio-graph-card2-custom-sample.dtsi
@@ -48,6 +48,11 @@ / {
* cpu5 <- at --* *-- at -> | | -> codec4
* cpu6 <- at --* * | | -> codec5
* **** +-+
+ *
+ * [Codec2Codec]
+ * +- at -> codec6
+ * |
+ * +---> codec7
*/
audio-graph-card2-custom-sample {
/*
@@ -72,12 +77,16 @@ audio-graph-card2-custom-sample {
"DAI5 Capture", "TC DAI4 Capture",
"DAI5 Capture", "TC DAI5 Capture",
"DAI6 Capture", "TC DAI4 Capture",
- "DAI6 Capture", "TC DAI5 Capture";
+ "DAI6 Capture", "TC DAI5 Capture",
+ /* for [Codec2Codec] */
+ "TC OUT", "TC DAI7 Playback",
+ "TC DAI6 Capture", "TC IN";
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 */
+ &c2c /* c2c: cpu side only */
>;
multi {
@@ -112,6 +121,14 @@ ports at 1 {
be1: port at 1 { be10_ep: endpoint { remote-endpoint = <&mbe_ep>; }; };
};
};
+
+ codec2codec {
+ ports at 0 {
+ rate = <48000>;
+ c2c: port at 0 { c2cf_ep: endpoint { remote-endpoint = <&codec6_ep>; }; };
+ port at 1 { c2cb_ep: endpoint { remote-endpoint = <&codec7_ep>; }; };
+ };
+ };
};
test_cpu {
@@ -160,6 +177,10 @@ ports {
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>; }; };
+ port at 6 { bitclock-master;
+ frame-master;
+ codec6_ep: endpoint { remote-endpoint = <&c2cf_ep>; }; };
+ port at 7 { codec7_ep: endpoint { remote-endpoint = <&c2cb_ep>; }; };
};
};
};
--
2.25.1
More information about the Alsa-devel
mailing list