ARM: dts: iwg20d-q7-common: Sound DMA support via DVC on DTS
authorBiju Das <biju.das@bp.renesas.com>
Mon, 18 Dec 2017 18:22:41 +0000 (18:22 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 20 Dec 2017 11:52:37 +0000 (12:52 +0100)
DMA transfer uses DVC

     DMA               DMApp
[MEM] -> [SRC] -> [DVC] -> [SSIU] -> [SSI]

     DMA               DMApp
[MEM] <- [DVC] <- [SRC] <- [SSIU] <- [SSI]

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/iwg20d-q7-common.dtsi

index 952b79e..66954aa 100644 (file)
@@ -8,6 +8,29 @@
  * kind, whether express or implied.
  */
 
+/*
+ * SSI-SGTL5000
+ *
+ * This command is required when Playback/Capture
+ *
+ *      amixer set "DVC Out" 100%
+ *      amixer set "DVC In" 100%
+ *
+ * You can use Mute
+ *
+ *      amixer set "DVC Out Mute" on
+ *      amixer set "DVC In Mute" on
+ *
+ * You can use Volume Ramp
+ *
+ *      amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
+ *      amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
+ *      amixer set "DVC Out Ramp" on
+ *      aplay xxx.wav &
+ *      amixer set "DVC Out"  80%  // Volume Down
+ *      amixer set "DVC Out" 100%  // Volume Up
+ */
+
 / {
        aliases {
                serial0 = &scif0;
 
        rcar_sound,dai {
                dai0 {
-                       playback = <&ssi1 &src3>;
-                       capture = <&ssi0 &src2>;
+                       playback = <&ssi1 &src3 &dvc1>;
+                       capture = <&ssi0 &src2 &dvc0>;
                };
        };
 };