赞
踩
frameworks\base\services\core\java\com\android\server\WiredAccessoryManager.java
因为也外接了HDMI,所以连HDMI一起干掉。
下,屏蔽:
/*
// Monitor USB
uei = new UEventInfo(NAME_USB_AUDIO, BIT_USB_HEADSET_ANLG, BIT_USB_HEADSET_DGTL, 0);
if (uei.checkSwitchExists()) {
retVal.add(uei);
} else {
Slog.w(TAG, "This kernel does not have usb audio support");
}
// Monitor USB device audio playback
uei = new UEventInfo(NAME_USB_AUDIO_PLAYBACK, BIT_USB_DEVICE_AUDIO_PLAYBACK, 0, 0);
if (uei.checkSwitchExists()) {
retVal.add(uei);
} else {
Slog.w(TAG, "This kernel does not have usb audio playback support");
}
// Monitor USB device audio capture
uei = new UEventInfo(NAME_USB_AUDIO_CAPTURE, BIT_USB_DEVICE_AUDIO_CAPTURE, 0, 0);
if (uei.checkSwitchExists()) {
retVal.add(uei);
} else {
Slog.w(TAG, "This kernel does not have usb audio capture support");
}
// Monitor HDMI
//
// If the kernel has support for the "hdmi_audio" switch, use that. It will be
// signalled only when the HDMI driver has a video mode configured, and the downstream
// sink indicates support for audio in its EDID.
//
// If the kernel does not have an "hdmi_audio" switch, just fall back on the older
// "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);
} else {
uei = new UEventInfo(NAME_HDMI, BIT_HDMI_AUDIO, 0, 0);
if (uei.checkSwitchExists()) {
retVal.add(uei);
} else {
Slog.w(TAG, "This kernel does not have HDMI audio support");
}
}
}
*/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。