Android-x86 中没有音频 [英] No Audio in Android-x86

查看:73
本文介绍了Android-x86 中没有音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VirtualBox 中设置了一个 Android-x86 图像 (4.0-RC1-eeepc)在戴尔 Latitude D820 上.这个特殊的 ISO 不适用于笔记本电脑,但在所有可用的 ISO 中它的效果最好.

I've setup an Android-x86 image (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.

我已经解决了我遇到的一些问题(因为我的设备没有 ISO),但是我一直无法让声音正常工作.Android-x86 VirtualBox 教程和其他在线资源指导我将 ALSA 驱动程序与 SoundBlaster 16 一起使用,但这并没有奏效.

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.

这个问题让我看到了一些 ALSA 命令看看我能找到什么,但我一无所获.

This question 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 驱动程序和 SoundBlaster 控制器,我从 alsa_ctl init

With the ALSA driver and SoundBlaster controller I get the following from alsa_ctl init

Unknown hardware: "Dummy" "Dummy Mixer"
Hardware is initialized using a guess method

这对我来说看起来很错误,所以像另一个问题一样切换到 Intel HD Audio.

This looked very wrong to me so switched to the Intel HD Audio as the other question did.

使用 ALSA 驱动程序和 Intel HD Audio 控制器,我从 alsa_ctl init

With the ALSA driver and Intel HD Audio controller I get the following from 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.

由于 Android 基本上是 Linux,我想我可以翻译一个 Linux 解决方案.几个网页有类似这个的内容,说要修改/etc/modprobe.d/alsa-base.conf 并添加 options snd-hda-intel model=CORRECT_MODEL 这似乎对很多 Linux 用户有帮助.但是,这似乎不适用于 Android.至少对我来说不是,因为我没有 alsa-base.conf

Since Android is basically Linux, I thought I would be able to translate a Linux solution. Several webpages have content similar to this one saying 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

我对音频和 ALSA 知之甚少.有没有从我上面的内容中跳出来?即使是在大方向上的推动也会很棒.

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.

我的一些问题:当我获得 Unknown hardware: "Dummy" 信息时,这意味着什么?没有音频设备?

Some questions that I have: What does it mean when I get the Unknown hardware: "Dummy" info? No audio device?

最后,我验证了我的声音在虚拟盒子之外工作.我的第一个想法是,由于我的笔记本电脑可以运行带有声音的 Linux,我应该能够在 Android 中包含 Linux 驱动程序.这有任何意义吗?不幸的是,我也不知道如何去做.

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.

谢谢

推荐答案

在 vbox 中遇到了类似的无音频问题.在您的 init.sh 中,将此行添加到 alsa_amixer 内容的末尾:

Had a similar no audio problem in vbox. In your init.sh add this line to the end of the alsa_amixer stuff:

alsa_amixer 设置 PCM 100 静音

在我说我的音频工作正常之后.

After I aded that my audio worked fine.

这篇关于Android-x86 中没有音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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