rk3288 android5.1关闭hdmi 声音
程序员文章站
2022-05-11 21:09:14
...
设备
平台:RK3288
系统:Android5.1
问题
有时候HDMI和喇叭同时输出,此时需要关闭掉HDMI的声音,该如何修改呢?
解决方式
修改方式如下
--- a/frameworks/base/services/core/java/com/android/server/WiredAccessoryManager.java
+++ b/frameworks/base/services/core/java/com/android/server/WiredAccessoryManager.java
@@ -440,6 +440,7 @@ final class WiredAccessoryManager implements WiredAccessoryCallbacks {
// "hdmi" switch instead.
boolean isBOX = "box".equals(SystemProperties.get("ro.target.product", "box"));
if (!isBOX) {
+ /*
uei = new UEventInfo(NAME_HDMI_AUDIO, BIT_HDMI_AUDIO, 0, 0);
if (uei.checkSwitchExists()) {
retVal.add(uei);
@@ -451,6 +452,7 @@ final class WiredAccessoryManager implements WiredAccessoryCallbacks {
Slog.w(TAG, "This kernel does not have HDMI audio support");
}
}
+ */
}
上一篇: iso文件怎么让让电脑识别为光驱?