All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH RFC 13/15] ASoC: audio-graph-card2-sample.dtsi: add DPCM sample
Date: 22 Jun 2021 10:15:34 +0900	[thread overview]
Message-ID: <87im263djd.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <871r8u4s6q.wl-kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

This patch adds DPCM sample to audio-graph-card2-sample.dtsi.
This sample is assuming MIXer connection.

	CPU2 --\
	        +-- Codec2
	CPU3 --/

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 .../soc/generic/audio-graph-card2-sample.dtsi | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/sound/soc/generic/audio-graph-card2-sample.dtsi b/sound/soc/generic/audio-graph-card2-sample.dtsi
index 5e83bfed1781..9aab6be176e5 100644
--- a/sound/soc/generic/audio-graph-card2-sample.dtsi
+++ b/sound/soc/generic/audio-graph-card2-sample.dtsi
@@ -20,6 +20,8 @@ / {
 	/*
 	 * cpu0 <--> codec0	// Normal
 	 * cpu1 <--> codec1	// Normal
+	 * cpu2 <--> codec2	// DPCM
+	 * cpu3 <-/		// DPCM
 	 */
 	card2 {
 		/*
@@ -30,10 +32,27 @@ card2 {
 		 */
 		compatible = "sample-custom-card";
 
+		routing = "TC DAI2 Playback", "DAI2 Playback",
+			  "TC DAI2 Playback", "DAI3 Playback",
+			  "DAI2 Capture", "TC DAI2 Capture",
+			  "DAI3 Capture", "TC DAI2 Capture";
+
 		links = <&cpu0 &cpu1			/* normal: cpu side only  */
+			 &mix_fe0 &mix_fe1 &mix_be0	/* dsp   : both fe/be     */
 		>;
 	};
 
+	mix {
+		compatible = "audio-graph-card2-dsp";
+		DSP_FE: ports@0 {
+			mix_fe0: port@0 { mix_fe0_ep: endpoint { remote-endpoint = <&cpu2_ep>; }; };
+			mix_fe1: port@1 { mix_fe1_ep: endpoint { remote-endpoint = <&cpu3_ep>; }; };
+		};
+		DSP_BE: ports@1 {
+			mix_be0: port   { mix_be0_ep: endpoint { remote-endpoint = <&codec2_ep>; }; };
+		};
+	};
+
 	test_cpu {
 		/*
 		 * update compatible to indicate more detail behaviour
@@ -48,6 +67,8 @@ ports {
 			frame-master;
 			cpu0: port@0 { cpu0_ep: endpoint { remote-endpoint = <&codec0_ep>; }; };
 			cpu1: port@1 { cpu1_ep: endpoint { remote-endpoint = <&codec1_ep>; }; };
+			      port@2 { cpu2_ep: endpoint { remote-endpoint = <&mix_fe0_ep>; }; };
+			      port@3 { cpu3_ep: endpoint { remote-endpoint = <&mix_fe1_ep>; }; };
 		};
 	};
 
@@ -61,8 +82,15 @@ test_codec {
 		 */
 		compatible = "test-codec";
 		ports {
+			/*
+			 * prefix can be added to *component*,
+			 * see card2::routing
+			 */
+			prefix = "TC";
+
 			port@0 { codec0_ep: endpoint { remote-endpoint = <&cpu0_ep>; }; };
 			port@1 { codec1_ep: endpoint { remote-endpoint = <&cpu1_ep>; }; };
+			port@2 { codec2_ep: endpoint { remote-endpoint = <&mix_be0_ep>; }; };
 		};
 	};
 };
-- 
2.25.1


  parent reply	other threads:[~2021-06-22  1:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22  1:13 [PATCH RFC 00/15] ASoC: add Audio Graph Card2 driver Kuninori Morimoto
2021-06-22  1:14 ` [PATCH RFC 01/15] of: property: add port base loop Kuninori Morimoto
2021-06-22 14:31   ` Rob Herring
2021-06-22  1:14 ` [PATCH RFC 02/15] ASoC: dt-bindings: test-component: add Test Component YAML bindings Kuninori Morimoto
2021-06-22  1:14 ` [PATCH RFC 03/15] ASoC: test-component: add Test Component for Sound debug/test Kuninori Morimoto
2021-06-22  1:14 ` [PATCH RFC 04/15] ASoC: simple-card-utils: add asoc_graph_is_ports0() Kuninori Morimoto
2021-06-22  1:14 ` [PATCH RFC 05/15] ASoC: simple-card-utils: add codec2codec support Kuninori Morimoto
2021-06-22  1:14 ` [PATCH RFC 06/15] ASoC: audio-graph-card2: add Audio Graph Card2 driver Kuninori Morimoto
2021-06-22  1:15 ` [PATCH RFC 07/15] ASoC: audio-graph-card2: add DPCM support Kuninori Morimoto
2021-06-22  1:15 ` [PATCH RFC 08/15] ASoC: audio-graph-card2: add Multi CPU/Codec support Kuninori Morimoto
2021-06-22  1:15 ` [PATCH RFC 09/15] ASoC: audio-graph-card2: add Codec2Codec support Kuninori Morimoto
2021-06-22  1:15 ` [PATCH RFC 10/15] ASoC: audio-graph-card2: add Yaml Document Kuninori Morimoto
2021-06-22 13:55   ` Rob Herring
2021-06-22  1:15 ` [PATCH RFC 11/15] ASoC: sample-custom-card: add Audio Graph Card2 custome sample Kuninori Morimoto
2021-06-22  1:15 ` [PATCH RFC 12/15] ASoC: audio-graph-card2-sample.dtsi: add Sample DT for Audio Graph Card2 Kuninori Morimoto
2021-06-22  1:15 ` Kuninori Morimoto [this message]
2021-06-22  1:15 ` [PATCH RFC 14/15] ASoC: audio-graph-card2-sample.dtsi: add Multi CPU/Codec sample Kuninori Morimoto
2021-06-22  1:15 ` [PATCH RFC 15/15] ASoC: audio-graph-card2-sample.dtsi: add Codec2Codec sample Kuninori Morimoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im263djd.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.