1

我正在尝试在主机模式下将 USB 音频类设备与我的 Galaxy Nexus 一起使用。我想同时使用芯片组的音频和 GPIO/I2C 功能。我的理解是Android内核将支持通过USB的音频(无需root手机)。

但是,根据这篇文章,如果我可以通过其 VID 和 PID 获取任意 USB 设备,我似乎可以为任意 USB 设备编写软驱动程序。也许我什至可以使用同步端点从我的应用程序中播放一些音频。这可能吗?太糟糕了,目前不支持同步端点。

当我连接我的设备并使用dmesg时,我看到了device vXXXX pXXXX is not supported。这说明什么?

如果我的 USB 设备有时无法枚举(见下文)怎么办?这可能是硬件问题吗?

<6>[  262.061309] usb 2-1: new full speed USB device number 5 using musb-hdrc
<3>[  262.123870] hub 2-0:1.0: unable to enumerate USB device on port 1
<6>[  262.483215] usb 2-1: new full speed USB device number 6 using musb-hdrc
<3>[  262.631652] usb 2-1: device descriptor read/all, error -19
<3>[  262.694183] hub 2-0:1.0: unable to enumerate USB device on port 1
<6>[  263.053558] usb 2-1: new full speed USB device number 8 using musb-hdrc
<3>[  268.608215] usb 2-1: device not accepting address 8, error -110
<3>[  268.670715] hub 2-0:1.0: unable to enumerate USB device on port 1
4

1 回答 1

2

根据http://www.usb.org/developers/devclass_docs/audio10.pdf(第 4.6 节),USB 音频类设备使用同步端点来传输实际的音频数据。

根据http://developer.android.com/reference/android/hardware/usb/UsbEndpoint.html,Android 的 USB 主机 API 目前不支持同步端点。

于 2012-04-19T07:54:42.837 回答