diff --git a/patch/kernel/rockchip64-current/board-rock64-add-audio.patch b/patch/kernel/rockchip64-current/board-rock64-add-audio.patch new file mode 100644 index 000000000..8799c0a6f --- /dev/null +++ b/patch/kernel/rockchip64-current/board-rock64-add-audio.patch @@ -0,0 +1,90 @@ +diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +index f97446924..d9a1cb24a 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +@@ -83,34 +83,14 @@ + linux,default-trigger = "heartbeat"; + }; + }; ++}; + +- sound { +- compatible = "audio-graph-card"; +- label = "rockchip,rk3328"; +- dais = <&i2s1_p0 +- &spdif_p0>; +- }; +- +- spdif-dit { +- compatible = "linux,spdif-dit"; +- #sound-dai-cells = <0>; +- +- port { +- dit_p0_0: endpoint { +- remote-endpoint = <&spdif_p0_0>; +- }; +- }; +- }; ++&analog_sound { ++ status = "okay"; + }; + + &codec { + status = "okay"; +- +- port@0 { +- codec_p0_0: endpoint { +- remote-endpoint = <&i2s1_p0_0>; +- }; +- }; + }; + + &cpu0 { +@@ -166,6 +146,10 @@ + status = "okay"; + }; + ++&hdmi_sound { ++ stratus = "okay"; ++}; ++ + &i2c1 { + status = "okay"; + +@@ -277,16 +261,12 @@ + }; + }; + +-&i2s1 { ++&i2s0 { + status = "okay"; ++}; + +- i2s1_p0: port { +- i2s1_p0_0: endpoint { +- dai-format = "i2s"; +- mclk-fs = <256>; +- remote-endpoint = <&codec_p0_0>; +- }; +- }; ++&i2s1 { ++ status = "okay"; + }; + + &io_domains { +@@ -336,12 +316,10 @@ + &spdif { + pinctrl-0 = <&spdifm0_tx>; + status = "okay"; ++}; + +- spdif_p0: port { +- spdif_p0_0: endpoint { +- remote-endpoint = <&dit_p0_0>; +- }; +- }; ++&spdif_sound { ++ status = "okay"; + }; + + &spi0 {