Enabled HDMI audio for OrangePi 4 (#2009)

This commit is contained in:
Piotr Szczepanik 2020-06-06 19:52:47 +02:00 committed by GitHub
parent 4fc10487f4
commit df0083d395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 28 deletions

View File

@ -243,11 +243,11 @@ index 00000000..17010305
+ };
+
+ hdmi_sound: hdmi-sound {
+ status = "disable";
+ status = "okay";
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,mclk-fs = <256>;
+ simple-audio-card,name = "rockchip,hdmi";
+ simple-audio-card,name = "hdmi-sound";
+
+ simple-audio-card,cpu {
+ sound-dai = <&i2s2>;

View File

@ -15,7 +15,7 @@ new file mode 100644
index 000000000..1e1747ceb
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi-4.dts
@@ -0,0 +1,1134 @@
@@ -0,0 +1,1123 @@
+/*
+ * SPDX-License-Identifier: (GPL-2.0+ or MIT)
+ * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
@ -218,18 +218,7 @@ index 000000000..1e1747ceb
+ };
+
+ hdmi_sound: hdmi-sound {
+ status = "disable";
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,mclk-fs = <256>;
+ simple-audio-card,name = "rockchip,hdmi";
+
+ simple-audio-card,cpu {
+ sound-dai = <&i2s2>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&hdmi>;
+ };
+ status = "okay";
+ };
+
+ hdmi_dp_sound: hdmi-dp-sound {

View File

@ -15,7 +15,7 @@ new file mode 100644
index 000000000..1e1747ceb
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi-4.dts
@@ -0,0 +1,1134 @@
@@ -0,0 +1,1123 @@
+/*
+ * SPDX-License-Identifier: (GPL-2.0+ or MIT)
+ * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
@ -218,18 +218,7 @@ index 000000000..1e1747ceb
+ };
+
+ hdmi_sound: hdmi-sound {
+ status = "disable";
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,mclk-fs = <256>;
+ simple-audio-card,name = "rockchip,hdmi";
+
+ simple-audio-card,cpu {
+ sound-dai = <&i2s2>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&hdmi>;
+ };
+ status = "okay";
+ };
+
+ hdmi_dp_sound: hdmi-dp-sound {