本文主要是介绍[rk3399 android11]关闭声卡,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用以下命令查看声卡,可以看到目前有三个声卡
cat /proc/asound/cards
修改设备树
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dts b/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dtsindex 515334c127..5b592a852f 100755--- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dts+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dts@@ -118,6 +118,6 @@
};&hdmi_sound {- status = "okay";+ status = "disabled";
};diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dtsiindex 6e66762e96..cbacc6e9bd 100755--- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dtsi+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-jw-d039.dtsi@@ -452,7 +452,7 @@
};&dp_sound {- status = "okay";+ status = "disabled";
};&hdmi_in_vopb {diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsiindex 4263f9d89d..25bd362c6d 100644--- a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi@@ -1088,7 +1088,7 @@};&hdmi_sound {- status = "okay";+ status = "disabled";
};&i2c0 {
修改过后,重新编译代码,烧录固件,再次查看声卡,只剩下一个声卡了
这篇关于[rk3399 android11]关闭声卡的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!