当前位置:   article > 正文

android 5.1 usb 摄像头,rk平台 android5.1 接了外接摄像头带麦克风系统本地声卡录音没法用...

android 5.1 usb摄像头设置为前置摄像头

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");

}

}

}

*/

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号