注意:我要求关闭此问题,因为结果是Linux/Qemu特定问题。
我在Linux Mint 16笔记本电脑上的Qemu虚拟机中尝试Android x86 4.4-r2。安装成功。到目前为止,我最大的问题是声音。我已经尝试过来自Qemu的SB16,ES1370,AC97虚拟声卡型号,但我的虚拟机没有声音。这是Android 4.4-r2中的内容:
# alsa_actl init
Found hardware: "SB16" "CTL1745" "CTL1745" "" ""
Hardware is initialized using a generic method #exit code is 22
我还尝试了EEEPC版本(4.0),ES1370,as suggested。同样的事情:没有声音。
虽然使用SB16驱动程序,但alsa_aplay /system/media/audio/ringtones/Sceptrum.ogg
似乎有所作为,但我什么都没听到。
我有一台Windows虚拟机,我可以从中听到系统声音。因此,我绝对排除了Qemu的一个问题(**)。
我也从question #11037254查找了建议,但没有一个有效。
任何人都能解释一下吗?
(**) 嗯,事实上,并不完全排除!我刚刚注意到,到目前为止,我的GNU / Linux虚拟机都没有输出声音。只有我的Windows虚拟机可以,我不知道为什么会这样。
编辑:从Linux虚拟机中检测到硬件。
~# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 RAM memory: Red Hat, Inc Virtio memory balloon
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 Ethernet controller: Red Hat, Inc Virtio network device
00:06.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI]
00:07.0 Ethernet controller: Red Hat, Inc Virtio network device
编辑:这是调音台和加载模块的额外信息。
加载(声音)模块:
~# lsmod | grep snd
snd_sb16 8701 0 - Live 0x00000000
snd_sb16_csp 7275 1 snd_sb16, Live 0x00000000
snd_sb16_dsp 6623 1 snd_sb16, Live 0x00000000
snd_pcm 67937 2 snd_sb16,snd_sb16_dsp, Live 0x00000000
snd_mpu401_uart 4517 1 snd_sb16, Live 0x00000000
snd_rawmidi 16434 1 snd_mpu401_uart, Live 0x00000000
snd_opl3_lib 7187 1 snd_sb16, Live 0x00000000
snd_seq_device 4877 2 snd_rawmidi,snd_opl3_lib, Live 0x00000000
snd_hwdep 4409 2 snd_sb16_csp,snd_opl3_lib, Live 0x00000000
snd_timer 14529 2 snd_pcm,snd_opl3_lib, Live 0x00000000
snd_sb_common 10548 3 snd_sb16,snd_sb16_csp,snd_sb16_dsp, Live 0x00000000
snd 47842 11 snd_sb16,snd_sb16_csp,snd_sb16_dsp,snd_pcm,snd_mpu401_uart,snd_rawmidi,snd_opl3_lib,snd_seq_device,snd_hwdep,snd_timer,snd_sb_common, Live 0x00000000
soundcore 4971 1 snd, Live 0x00000000
调音台设置:
~# alsa_amixer
Simple mixer control 'Master',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%]
Front Right: Playback 31 [100%]
Simple mixer control 'Bass',0
Capabilities: volume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 15
Front Left: 2 [13%]
Front Right: 2 [13%]
Simple mixer control 'Treble',0
Capabilities: volume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 15
Front Left: 2 [13%]
Front Right: 2 [13%]
Simple mixer control 'PCM',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%]
Front Right: Playback 31 [100%]
Simple mixer control 'Synth',0
Capabilities: pvolume cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] Capture [off]
Front Right: Playback 0 [0%] Capture [off]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 4 [13%] [off] Capture [off]
Front Right: Playback 4 [13%] [off] Capture [off]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 4 [13%] [off] Capture [off]
Front Right: Playback 4 [13%] [off] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch penum
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 4 [13%] [off]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mic Auto Gain',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Beep',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'Playback',0
Capabilities: volume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 3 [100%]
Front Right: 3 [100%]
Simple mixer control 'Capture',0
Capabilities: cvolume penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 3
Front Left: Capture 3 [100%]
Front Right: Capture 3 [100%]
Simple mixer control '3D Enhancement',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
答案 0 :(得分:0)
在Archlinux中,经常出现同样的问题。 有几个声音引擎: gstreamer , vlc 等。 最常见的是 gstreamer 但如果我想要声音,我必须更改为 vlc 。