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

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

}

}

}

*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值