Rock64_V2 no audio, how to fix?

This is for ARMv8 based devices

Rock64_V2 no audio, how to fix?

Postby as365n4 » Tue Jul 28, 2020 1:12 pm

Hi all,

I just installed alarm on my Rock64_V2, System works fine so far except there is no Audio neither on HMDI nor 3.5mm Jack.

Kernel: aarch64- Linux 5.7.8-1-ARCH
Gnome 3.36.4 (Wayland)
ALSA Driver Version k5.7.8-1-ARCH
Alsa-utils 1.2.3-2
Pulseaudio 13.0-3

Alsa does not detect any Sound Card and Gnome shows only Dummy Output as available Output Device.

Have I missed something?
I followed the wiki article on archlinuxarm.org for installing/setting up the basic system and then installed Wayland, Gnome, Alsa-Utils and PulseAudio was installed as a dependency. No further software installed except Firefox and System is up-to-date.
as365n4
 
Posts: 5
Joined: Sun Jul 19, 2020 5:04 pm

Re: Rock64_V2 no audio, how to fix?

Postby as365n4 » Wed Jul 29, 2020 11:59 am

I found this on the Change Log for Kernel 5.5
And finally rk3328 audio support, sdmmc detection fix and enabled
of the gpu on rk3399-puma.

arm64: dts: rockchip: Add RK3328 audio pipelines

Code: Select all
The audio pipelines for HDMI and the analog codec are internal to the
SoC, so it makes sense to describe them at that level such that boards
need only enable the respective nodes for outputs they implement.

Signed-off-by: Robin Murphy
---
 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 32 ++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index 31cc1541f1f5..91306ebed4da 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
@@ -142,6 +142,22 @@
       };
    };
 
+   analog_sound: analog-sound {
+      compatible = "simple-audio-card";
+      simple-audio-card,format = "i2s";
+      simple-audio-card,mclk-fs = <256>;
+      simple-audio-card,name = "Analog";
+      status = "disabled";
+
+      simple-audio-card,cpu {
+         sound-dai = <&i2s1>;
+      };
+
+      simple-audio-card,codec {
+         sound-dai = <&codec>;
+      };
+   };
+
    arm-pmu {
       compatible = "arm,cortex-a53-pmu";
       interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
@@ -156,6 +172,22 @@
       ports = <&vop_out>;
    };
 
+   hdmi_sound: hdmi-sound {
+      compatible = "simple-audio-card";
+      simple-audio-card,format = "i2s";
+      simple-audio-card,mclk-fs = <128>;
+      simple-audio-card,name = "HDMI";
+      status = "disabled";
+
+      simple-audio-card,cpu {
+         sound-dai = <&i2s0>;
+      };
+
+      simple-audio-card,codec {
+         sound-dai = <&hdmi>;
+      };
+   };
+
    psci {
       compatible = "arm,psci-1.0", "arm,psci-0.2";
       method = "smc";
--
2.17.1

How can this rk3328.dtsi file be used to fix Audio on the Rock64 or any other RK3328 based SBC ?
as365n4
 
Posts: 5
Joined: Sun Jul 19, 2020 5:04 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 4 guests

cron