端口艾莎到Android [英] Port Alsa to Android

查看:120
本文介绍了端口艾莎到Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加USB音频功能为我的Andr​​oid手机。有没有可能,只要我可以添加所有的ALSA驱动我的android系统,然后我能得到我想要的吗?任何人都可以给我如何Android是使用ALSA一些提示,我怎么可以添加ALSA内核模块对现有系统?

I'm trying to add the usb audio function for my android phone. Is it possible that as long as I can add all the alsa driver to my android system and then i can get what i want? Can anyone give me some hints on how android is using alsa and how I can add alsa kernel modules to existing system?

感谢您。

推荐答案

@詹姆斯,Android平台已经包含了其音频子系统作为一个标准的ALSA,你不需要它自己添加。如果你有一个根深蒂固的手机或一个品牌的手机,您可以将手机连接到您的网络,并使用该IP地址进行连接您的开发系统:ADB连接IP地址:5555,最简单的检查方法将使用ADB连接手机搜索结果您可以通过进入/ proc目录验证ALSA的存在性。你会发现一个叫做设备文件。如果你的猫设备文件,你应该在字符设备看到ALSA与设备ID 116搜索结果同样在/ proc目录中,你应该找到另一个叫asound在目录中。进入该目录,并做了上市的ls -l。你会发现所有的声音设备 - 声卡,包括SPDIF,HDMI和声音codeS通过Android设备使用。所有这些设备如果您拔下USB设备,你会发现通过ALSA搜索结果控制,即在asound在目录更改列表。 ALSA管理所有的音频功能,包括在Android设备上的音频播放和录制。搜索结果我希望这个非技术概述帮助。通过,如果你都意味着更多的问题随时问。

@James, the android platform already includes alsa for its audio sub system as a standard and you do not need to add it yourself. If you have a rooted phone or a branded phone you can connect your phone to your network and using the ip address connect it your development system: adb connect IP-address:5555 , the easiest way to check will be to use adb to connect to your phone

You can verify the existences of alsa by going into the /proc directory. You will find a file called devices. If you cat the devices file you should see under character devices alsa with device ID 116

Also inside the /proc directory you should find another directory called asound. Go into that directory and do a listing ls -l. You will notice all the sound devices - sound cards, including the SPDIF, HDMI and sound codes used by your android device. All these devices are controlled by alsa.

If you unplug your usb device you will notice that the listing in the asound directory changes. Alsa manages all the audio functions including playback and recording of audio on your android device.

I hope this non technical overview helps. By all means if you have more questions feel free to ask

这篇关于端口艾莎到Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆