Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: audio-graph-scu-card: add missing MIX binding example
@ 2017-06-05  4:25 Kuninori Morimoto
  2017-06-05  5:15 ` James Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Kuninori Morimoto @ 2017-06-05  4:25 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, linux-renesas-soc

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

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 .../bindings/sound/audio-graph-scu-card.txt        | 47 +++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
index b2dd23f..ca494cf 100644
--- a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
+++ b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
@@ -35,7 +35,7 @@ Required properties:
 - compatible				: "audio-graph-scu-card";
 - dais					: list of CPU DAI port{s}
 
-Example
+Example 1. Sampling Rate Covert
 
 	sound_card {
 		compatible = "audio-graph-scu-card";
@@ -70,3 +70,48 @@ Example
 			};
 		};
 	};
+
+Example 2. 2 CPU 1 Codec (Mixing)
+
+	sound_card {
+		compatible = "audio-graph-scu-card";
+
+		label = "sound-card";
+		prefix = "codec";
+		routing = "codec Playback", "DAI0 Playback",
+			"codec Playback", "DAI1 Playback";
+		convert-rate = <48000>;
+
+		dais = <&cpu_port0
+			&cpu_port1>;
+	};
+
+	audio-codec {
+		...
+
+		port {
+			codec_endpoint: endpoint {
+				remote-endpoint = <&cpu_endpoint0>;
+			};
+		};
+	};
+
+	dai-controller {
+		...
+		ports {
+			cpu_port0: port {
+				cpu_endpoint0: endpoint {
+					remote-endpoint = <&codec_endpoint>;
+
+					dai-format = "left_j";
+					...
+				};
+			};
+			cpu_port1: port {
+				cpu_endpoint1: endpoint {
+					dai-format = "left_j";
+					...
+				};
+			};
+		};
+	};
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: audio-graph-scu-card: add missing MIX binding example
  2017-06-05  4:25 [PATCH] ASoC: audio-graph-scu-card: add missing MIX binding example Kuninori Morimoto
@ 2017-06-05  5:15 ` James Cameron
  2017-06-05  6:23   ` [alsa-devel] " Kuninori Morimoto
  0 siblings, 1 reply; 3+ messages in thread
From: James Cameron @ 2017-06-05  5:15 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: linux-renesas-soc, Linux-ALSA, Mark Brown, Simon

On Mon, Jun 05, 2017 at 04:25:15AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  .../bindings/sound/audio-graph-scu-card.txt        | 47 +++++++++++++++++++++-
>  1 file changed, 46 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
> index b2dd23f..ca494cf 100644
> --- a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
> +++ b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
> @@ -35,7 +35,7 @@ Required properties:
>  - compatible				: "audio-graph-scu-card";
>  - dais					: list of CPU DAI port{s}
>  
> -Example
> +Example 1. Sampling Rate Covert

Other documentation refers to sampling rate conversion or converter
unit, but simple-scu-card.txt and your patch refer to making the
sampling rate covert.  Perhaps "covert" should be "convert."

-- 
James Cameron
http://quozl.netrek.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [alsa-devel] [PATCH] ASoC: audio-graph-scu-card: add missing MIX binding example
  2017-06-05  5:15 ` James Cameron
@ 2017-06-05  6:23   ` Kuninori Morimoto
  0 siblings, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2017-06-05  6:23 UTC (permalink / raw)
  To: James Cameron; +Cc: Mark Brown, linux-renesas-soc, Linux-ALSA, Simon


Hi James

> On Mon, Jun 05, 2017 at 04:25:15AM +0000, Kuninori Morimoto wrote:
> > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > 
> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > ---
> >  .../bindings/sound/audio-graph-scu-card.txt        | 47 +++++++++++++++++++++-
> >  1 file changed, 46 insertions(+), 1 deletion(-)
> > 
> > diff --git a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
> > index b2dd23f..ca494cf 100644
> > --- a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
> > +++ b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt
> > @@ -35,7 +35,7 @@ Required properties:
> >  - compatible				: "audio-graph-scu-card";
> >  - dais					: list of CPU DAI port{s}
> >  
> > -Example
> > +Example 1. Sampling Rate Covert
> 
> Other documentation refers to sampling rate conversion or converter
> unit, but simple-scu-card.txt and your patch refer to making the
> sampling rate covert.  Perhaps "covert" should be "convert."

Let's use "Sampling Rate Conversion".
will do in v2

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-05  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05  4:25 [PATCH] ASoC: audio-graph-scu-card: add missing MIX binding example Kuninori Morimoto
2017-06-05  5:15 ` James Cameron
2017-06-05  6:23   ` [alsa-devel] " Kuninori Morimoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox