访问手机版页面
你的位置:老古开发网 > 其他 > 正文  
android,安卓, XMOS的usb audio 如何用在android 平台手机或者平板上
内容导读:
首先,这个是一个很广泛的话题,对我来讲也是很高深的学问。在这里我只能把我学到的东西告诉大家,希望大家可以在我所知的基础上挖掘更多... 

1) 介绍一款非常好用的apps 给大家,名字叫: Audio Evolution ,大家一搜索就有了。这是一款非常好的软件,你装完之后,xmos 的usb audio 可以在绝大多数的android 平台上使用。它可以支持多通道audio ,还可以支持midi 录音回放。它还有支持苹果平台和支持windows 平台的版本。使用手册在这里: 
http://www.audio-evolution.com/index.php?option=com_content&view=article&id=46&Itemid=32

2) 这里有一个地方有讲用另外一个软件也可以让你的android 手机或平板支持xmos 的usb audio 产品。 
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudiorecorderpro  
名字叫做usb audio recorder pro ,支持单声道和立体声流,16位和24位,该设备提供任何采样率(高达192kHz)。如果您的设备暴露内部静音,音量和/或增益控制,它们将显示在“混音器”选项卡。
这个链接有详细的支持表格,说明哪些手机或者平板可以支持 : 
http://www.extreamsd.com/USBAudioRecorderPRO/ 
使用这个软件的话,你的android 手机或者平板就象电脑一样,作为usb host . xmos 的usb audio 就作为usb device . 
好了,你连接音频设备开始之前USB录音机PRO,它仍然无法正常工作,做什么呢?

如果在Android和USB设备支持的设备列表:

有些设备需要更多的权力比你的Android设备可以提供。如果您的音频设备是由总线供电(所以没有墙式转接器),你可以尝试把一个USB集线器之间。
如果你有一个Android设备上的微型USB端口,确保你真的有OTG适配器电缆,而不是某种简单的USB类型转换,否则USB主机模式没有被激活。
更经常发生比人们认为的micro-USB电缆没有完全安装的micro-USB端口。确保它适合非常好,如果您的音频设备有一个蓝色的USB灯,检查其是否打开,当您将它连接到你的Android设备。如果它不亮,那么布线是不正确或您的音频设备消耗太多功率。需要注意的是USB灯必须在启动应用程序之前已经被点燃。
有些设备只是挑剔(例如FIIO E17)。尝试断开电缆,然后重新连接,启动应用程序,看看是否有帮助。
重新启动你的Android设备
如果你的Android或USB设备不在列表中:

确保你的Android设备有USB主机模式:谷歌的设备,如宏碁Iconia A100 USB主机模式“。如果您发现安打说,它没有USB主机模式,那么您的设备将无法正常工作。如果你找到命中,说明一个定制的内核可以激活USB主机模式,那么你的设备将无法正常工作,除非你有特定的自定义ROM。
请确保您的USB设备兼容类:谷歌音频设备,检查是否正常工作,因为它在Linux下工作(不是我们使用的Linux驱动程序,或者也有一个更大的机会,但他们通常有类兼容设备工作)。
- 需要Android3.1及以上版本
- 高性能跨设备的显著变化。新的索尼,Experia还可以做18in18out,一个2-3岁平板电脑只能做2in2out的的。
最近测试了一下,中兴的机型v985安装完usb audio recorder pro 后可以支持xmos usb audio 2.0 , 播放wav 和flag 都没有问题,但好像不能播放ogg,aiff.  
3) 这里是一些可以支持android 手机或平板的usb adc 的例子:
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/1140 

4) 有另外一种办法支持android 的手机或者平板,就是直接使用,但是你的手机或者平板需要支持AOA 或者AOA2 . 而且你的手机是usb device, xmos 作为usb host . 

Audio over USB

An accessory that connects with Android over USB connection must use the Android Open Accessory (AOA) protocol version 2.0. This version of the AOA protocol is supported on Android 4.1 (API Level 16) and higher. Once an Android device connects to an accessory that supports this protocol, the Android system treats it as a standard audio output device and routes all audio to that accessory. No secondary software application is required on the Android device.

Note: Due to the low power output of Android devices, the Android Open Accessory Protocol requires that accessories act as a USB host, which means that the connecting accessory must power the bus.

什么是AOA 和AOA2 呢? 

http://source.android.com/tech/accessories/aoap/aoa.html 

http://source.android.com/tech/accessories/aoap/aoa2.html 

AOA2 还可以支持hid , 就很方便了,即使是android 的手机和平板做usb device , 也可以支持hid 哦。只要支持AOA2 就可以。xmos 的usb audio 就可以远程操作android 手机播放暂停... 

 

HID Support

AOA 2.0 allows the accessory to register one or more USB Human Interface Devices (HID) with an Android device. This approach reverses the direction of communication for typical USB HID devices like USB mice and keyboards. Normally, the HID device is a peripheral connected to a USB host like a personal computer. But in the case of the AOA protocol, the USB host acts as one or more input devices to a USB peripheral.

HID support in AOA 2.0 is simply a proxy for standard HID events. The implementation makes no assumptions about the content or type of events and merely passes it through to the input system, so an AOA 2.0 accessory can act as any HID device (mouse, keyboard, game controller, etc.). It can be used for something as simple as the play/pause button on a media dock, or something as complicated as a docking station with a mouse and full QWERTY keyboard.

 

如果你想启用USB音频设备通过任何Android4.0官方固件/内核,在这里请投票:

http://code.google.com/p/android/issues/detail?id=24614

星:点击星投票

根据Android3.1的规格,Android 4.0的设备可以支持USB音频功能,即Android的4.0设备和USB_CLASS_AUDIO的兼容标准的USB DAC可互操作的设备,如:

http://developer.android.com/guide/t...usb/index.html

http://developer.android.com/reference/and...bConstants.html

标准的USB DAC的USB_CLASS_AUDIO兼容的设备,不需要特殊的USB设备驱动程序。相反,他们使用的操作系统的标准驱动程序。

Android标准的USB音频驱动程序是通用的USB音频驱动ALSA(高级Linux声音架构)。

最新的Android 4.0包括card.c,USB音频驱动器,用于ALSA这应该是符合USB音频类设备,允许24位/192千赫。

https://bitbucket.org/paulobrien/android_ke...ound/usb/card.c

如果你需要了解详细的情况,请到这个链接 http://www.avsforum.com/t/1393599/enable-usb-audio-on-any-android-4-0-smartphone-tablet 

5)客户产品点评 http://bbs.imp3.net/thread-10993608-1-1.html 


google 有一个社区专门讨论usb audio on android 。 

http://code.google.com/p/android/issues/detail?id=24614&sort=-stars&colspec=ID Type Status Owner Summary Stars

标签:
来源: 作者: 时间:2014/7/11 2:35:51
相关阅读
推荐阅读
阅读排行
最近更新
商品推荐