]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: audio-graph-scu-card: add missing MIX binding example
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 6 Jun 2017 02:37:07 +0000 (02:37 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 16:55:42 +0000 (17:55 +0100)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt

index b2dd23fd213559aada36c021ddaeffcba0bf1883..b63c5594bbb35b4ce5c6eff255d6d7d15f0f0bb1 100644 (file)
@@ -35,7 +35,7 @@ Required properties:
 - compatible                           : "audio-graph-scu-card";
 - dais                                 : list of CPU DAI port{s}
 
-Example
+Example 1. Sampling Rate Conversion
 
        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";
+                                       ...
+                               };
+                       };
+               };
+       };