[alsa-devel] [PATCH 6/8] ASoC: simple-scu-card: add 2 CPU 1 Codec example
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Thu Aug 25 03:58:10 CEST 2016
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
.../devicetree/bindings/sound/simple-scu-card.txt | 32 +++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
index ecb4a24..d6fe47e 100644
--- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
+++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
@@ -52,7 +52,7 @@ Optional CPU/CODEC subnodes properties:
clk_disable_unprepare() in dai
shutdown().
-Example
+Example 1. Sampling Rate Covert
sound {
compatible = "simple-scu-audio-card";
@@ -78,3 +78,33 @@ sound {
system-clock-frequency = <11289600>;
};
};
+
+Example 2. 2 CPU 1 Codec
+
+sound {
+ compatible = "renesas,rsrc-card";
+
+ card-name = "rsnd-ak4643";
+ format = "left_j";
+ bitclock-master = <&dpcmcpu>;
+ frame-master = <&dpcmcpu>;
+
+ convert-rate = <48000>; /* see audio_clk_a */
+
+ audio-prefix = "ak4642";
+ audio-routing = "ak4642 Playback", "DAI0 Playback",
+ "ak4642 Playback", "DAI1 Playback";
+
+ dpcmcpu: cpu at 0 {
+ sound-dai = <&rcar_sound 0>;
+ };
+
+ cpu at 1 {
+ sound-dai = <&rcar_sound 1>;
+ };
+
+ codec {
+ sound-dai = <&ak4643>;
+ clocks = <&audio_clock>;
+ };
+};
--
1.9.1
More information about the Alsa-devel
mailing list