Skip to content
This repository was archived by the owner on Apr 27, 2025. It is now read-only.

Commit 814ead4

Browse files
committed
add dp0 sound and audio naming
1 parent e90083e commit 814ead4

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

hinlink-h88k.csc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,16 @@ BOOT_SCENARIO="spl-blobs"
1010
WIREGUARD="no"
1111
IMAGE_PARTITION_TABLE="gpt"
1212
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
13+
14+
function post_family_tweaks__hinlink_h88k_naming_audios() {
15+
display_alert "$BOARD" "Renaming hinlink-h88k audios" "info"
16+
17+
mkdir -p $SDCARD/etc/udev/rules.d/
18+
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
19+
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi1-sound", ENV{SOUND_DESCRIPTION}="HDMI1 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
20+
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmiin-sound", ENV{SOUND_DESCRIPTION}="HDMI-In Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
21+
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
22+
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8388-sound", ENV{SOUND_DESCRIPTION}="ES8388 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
23+
24+
return 0
25+
}

rk3588-hinlink-h88k.dts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
stdout-path = "serial2:1500000n8";
2727
};
2828

29+
dp0_sound: dp0-sound {
30+
compatible = "rockchip,hdmi";
31+
rockchip,card-name= "rockchip,dp0";
32+
rockchip,mclk-fs = <512>;
33+
rockchip,cpu = <&spdif_tx2>;
34+
rockchip,codec = <&dp0 1>;
35+
rockchip,jack-det;
36+
};
37+
2938
es8388-sound {
3039
compatible = "rockchip,multicodecs-card";
3140
rockchip,card-name = "rockchip-es8388";
@@ -612,7 +621,7 @@
612621
status = "okay";
613622

614623
es8388: es8388@11 {
615-
compatible = "everest,es8388";
624+
compatible = "everest,es8388", "everest,es8323";
616625
reg = <0x11>;
617626
assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
618627
assigned-clock-rates = <12288000>;
@@ -902,6 +911,11 @@
902911
status = "okay";
903912
};
904913

914+
&saradc {
915+
status = "okay";
916+
vref-supply = <&vcc_1v8_s0>;
917+
};
918+
905919
&sata0 {
906920
status = "okay";
907921
};
@@ -930,6 +944,10 @@
930944
status = "okay";
931945
};
932946

947+
&spdif_tx2 {
948+
status = "okay";
949+
};
950+
933951
&tsadc {
934952
status = "okay";
935953
};

0 commit comments

Comments
 (0)