Android-x86 中没有音频
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11037254/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No Audio in Android-x86
提问by CatShoes
I've setup an Android-x86image (4.0-RC1-eeepc) in VirtualBox on a Dell Latitude D820. This particular ISO is not for the laptop, but of all available ISOs it works the best.
我在戴尔 Latitude D820 上的 VirtualBox 中设置了一个Android-x86映像 (4.0-RC1-eeepc)。这个特殊的 ISO 不适用于笔记本电脑,但在所有可用的 ISO 中它效果最好。
I have worked through some of the troubles I have come across (by not having an ISO for my device), but I haven't been able to get the sound working. The Android-x86 VirtualBox tutorial and other online resources directed me to use the ALSA driver with SoundBlaster 16, but this has not worked.
我已经解决了我遇到的一些麻烦(因为我的设备没有 ISO),但是我一直无法使声音正常工作。Android-x86 VirtualBox 教程和其他在线资源指示我将 ALSA 驱动程序与 SoundBlaster 16 一起使用,但这并没有奏效。
Thisquestion got me to look at some of the ALSA commands to see what I could find, but I'm not getting anywhere with it.
这个问题让我查看了一些 ALSA 命令,看看我能找到什么,但我一无所获。
With the ALSA driver and SoundBlaster controller I get the following from alsa_ctl init
使用 ALSA 驱动程序和 SoundBlaster 控制器,我从 alsa_ctl init
Unknown hardware: "Dummy" "Dummy Mixer"
Hardware is initialized using a guess method
This looked very wrong to me so switched to the Intel HD Audio as the other question did.
这对我来说看起来很错误,所以像另一个问题一样切换到英特尔高清音频。
With the ALSA driver and Intel HD Audio controller I get the following from alsa_ctl init
使用 ALSA 驱动程序和 Intel HD Audio 控制器,我从 alsa_ctl init
Unknown hardware: "HDA-Intel" "SigmaTel ID 7680" ...
Hardware is initialized using a guess method
While this looks a little more promising, I still have no audio.
虽然这看起来更有希望,但我仍然没有音频。
Since Android is basicallyLinux, I thought I would be able to translate a Linux solution. Several webpages have content similar to this onesaying to modify /etc/modprobe.d/alsa-base.conf
and add options snd-hda-intel model=CORRECT_MODEL
and this appears to help a lot of Linux users. However, this doesn't seem applicable to Android. At least not to me, since I don't have alsa-base.conf
由于 Android基本上是Linux,我想我可以翻译一个 Linux 解决方案。几个网页有内容类似的这一个说法修改/etc/modprobe.d/alsa-base.conf
和补充options snd-hda-intel model=CORRECT_MODEL
,这似乎能帮助很多Linux用户。但是,这似乎不适用于 Android。至少对我来说不是,因为我没有alsa-base.conf
I know so very little about audio and ALSA. Is there anyting jumping out from what I have above? Even a nudge in a general direction would be great.
我对音频和 ALSA 知之甚少。有没有从我上面的内容中跳出来?即使是在大方向上的推动也会很棒。
Some questions that I have:
What does it mean when I get the Unknown hardware: "Dummy"
info? No audio device?
我有一些问题: 当我获得Unknown hardware: "Dummy"
信息时,这意味着什么?没有音频设备?
Lastly, I have verified that my sound works outside of virtual box. My first throught is that since my laptop can run Linux with sound, I should be able to include the Linux drivers in Android. Does that make any sense? Unfortunately, I also don't really know how to go about doing that either.
最后,我已经确认我的声音在虚拟盒子之外工作。我的第一个想法是,由于我的笔记本电脑可以运行带有声音的 Linux,我应该能够在 Android 中包含 Linux 驱动程序。这有任何意义吗?不幸的是,我也不知道如何去做。
Thank you
谢谢
采纳答案by Jordan
Had a similar no audio problem in vbox. In your init.sh add this line to the end of the alsa_amixer stuff:
在 vbox 中有类似的无音频问题。在您的 init.sh 中,将此行添加到 alsa_amixer 内容的末尾:
alsa_amixer set PCM 100 unmute
alsa_amixer set PCM 100 unmute
After I aded that my audio worked fine.
在我补充说我的音频工作正常之后。
回答by UltraHKR
I had the same issues.
我有同样的问题。
I was using VMWare for WhatsApp. And had various Android versions without audio... Setup VMWare with HDAudio config file mod.
我在 WhatsApp 上使用了 VMWare。并且有各种没有音频的 Android 版本......使用 HDAudio 配置文件 mod 设置 VMWare。
alsa_ctl init
Always showed no devices.
总是显示没有设备。
I installed this App from Google Play "AlsaMixer (ROOT)" And this versions got audio instantly:
我从 Google Play “ AlsaMixer (ROOT)”安装了这个应用程序并且这个版本立即获得了音频:
- android-x86-4.3-20130725.iso
- android-x86-4.4-RC1.iso
- android-x86-4.3-20130725.iso
- android-x86-4.4-RC1.iso
回答by S3CR3T K3Y
Working on phoenix os and androidx86 for sound fix 1) Install AlsaMixer apk 2) Open AlsaMixer 3) Search Master Playback Volume and edit value to 90
使用 phoenix os 和 androidx86 进行声音修复 1) 安装 AlsaMixer apk 2) 打开 AlsaMixer 3) 搜索主播放音量并将值编辑为 90
回答by AWDNUT
I had the same issue.
我遇到过同样的问题。
I kept looking for init.sh
and then realized I had to install the darn thing to disk before that was worth fiddling with (it's re-parsed on reboot and the live disc doesn't save).
我一直在寻找init.sh
,然后意识到我必须在值得摆弄之前将这个该死的东西安装到磁盘上(它在重新启动时重新解析并且实时光盘没有保存)。
So I snagged the latest x86 ports and flipped through them till I found a 4.2x without issues. Sadly I lost track of which is which, and the good one is simply vm.iso
?!
所以我抓住了最新的 x86 端口并翻阅它们,直到我找到一个没有问题的 4.2x。可悲的是,我忘记了哪个是哪个,而好的只是vm.iso
?!
Long story short, audio is working fine with this build, I didn't even need to tweak anything.
长话短说,音频在这个版本中运行良好,我什至不需要调整任何东西。
System:
系统:
- Motherboard Tab:
- 4GB RAM (Half the Host RAM)
- [x] Hard Disk (Only boot device)
- everything else is default
- Processor Tab:
- 2 cores
- everything else is default
- Audio:
- Windows DirectSound
- ICH AC97
- everything else is default
- 主板标签:
- 4GB RAM(主机 RAM 的一半)
- [x] 硬盘(仅引导设备)
- 其他一切都是默认的
- 处理器选项卡:
- 2核
- 其他一切都是默认的
- 声音的:
- Windows DirectSound
- ICH AC97
- 其他一切都是默认的