@@ -18,7 +18,7 @@
*
* This command is required when Playback/Capture
*
- * amixer set "LINEOUT Mixer DACL" on
+ * amixer set "ak4642 LINEOUT Mixer DACL" on
* amixer set "DVC Out" 100%
* amixer set "DVC In" 100%
*
@@ -35,6 +35,13 @@
* aplay xxx.wav &
* amixer set "DVC Out" 80% // Volume Down
* amixer set "DVC Out" 100% // Volume Up
+ *
+ * You can use Synchronous Sampling Rate Convert (if no DVC)
+ *
+ * amixer set "SRC Out Rate" on
+ * aplay xxx.wav &
+ * amixer set "SRC Out Rate" 96000 // convert rate to 96000Hz
+ * amixer set "SRC Out Rate" 22050 // convert rate to 22050Hz
*/
/dts-v1/;
@@ -174,8 +181,9 @@
1800000 0>;
};
- sound {
+ sound@1 {
compatible = "simple-audio-card";
+ status = "disabled";
simple-audio-card,format = "left_j";
simple-audio-card,bitclock-master = <&sndcodec>;
@@ -191,6 +199,26 @@
};
};
+ sound@2 {
+ compatible = "renesas,rsrc-card,lager";
+
+ card-name = "rsnd-ak4643";
+ format = "left_j";
+ bitclock-master = <&dpcmcpu>;
+ frame-master = <&dpcmcpu>;
+
+ convert-rate = <48000>; /* see audio_clk_a */
+
+ dpcmcpu: cpu {
+ sound-dai = <&rcar_sound>;
+ };
+
+ dpcmcodec: codec {
+ sound-dai = <&ak4643>;
+ system-clock-frequency = <11289600>;
+ };
+ };
+
vga-encoder {
compatible = "adi,adv7123";
@@ -675,8 +703,8 @@
rcar_sound,dai {
dai0 {
- playback = <&ssi0 &src2 &dvc0>;
- capture = <&ssi1 &src3 &dvc1>;
+ playback = <&ssi0 &src2>;
+ capture = <&ssi1 &src3>;
};
};
};
@@ -684,3 +712,7 @@
&ssi1 {
shared-pin;
};
+
+&audio_clk_a {
+ clock-frequency = <12288000>; /* 48000 base clock */
+};
@@ -152,6 +152,7 @@ CONFIG_SND=y
CONFIG_SND_SOC=y
CONFIG_SND_SOC_SH4_FSI=y
CONFIG_SND_SOC_RCAR=y
+CONFIG_SND_SOC_RSRC_CARD=y
CONFIG_SND_SOC_AK4642=y
CONFIG_SND_SOC_WM8978=y
CONFIG_USB=y