Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Audio not working in VMWare Workstation with Gentoo guest
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Soichiro
n00b
n00b


Joined: 28 Jul 2006
Posts: 18

PostPosted: Thu Jul 15, 2010 10:08 pm    Post subject: Audio not working in VMWare Workstation with Gentoo guest Reply with quote

The other day I installed Gentoo amd64 onto a virtual machine in VMWare, but I have been unable to get audio working in it. The VMWare settings show that the sound card is enabled, and I have the correct ALSA drivers compiled as kernel modules. I have also made sure that alsasound is started and set to start on boot and that the volume is not muted. However, I cannot get audio from any application in Gentoo to play. I am using kernel 2.6.34-r2 and Gnome desktop environment in case it is relevant, and I do have alsa set it my use flags. I just can't think of what could be causing the problem.
Back to top
View user's profile Send private message
MysticPixel
n00b
n00b


Joined: 30 Nov 2004
Posts: 16

PostPosted: Fri Jul 30, 2010 11:42 pm    Post subject: Reply with quote

I am having exactly the same issue... I'm pretty handy with linux, and have used gentoo for years, but this one absolutely stumps me.

The fact that I can't find anything helpful about it makes me think it's a relatively new bug.

Here's some detailed system info:

Code:
mysticpixel@gvm ~ $ uname -a
Linux gvm 2.6.34-gentoo-r1 #3 SMP Fri Jul 30 18:59:07 EDT 2010 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux

Code:
mysticpixel@gvm ~ $ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.22.1.

First, I tried it with ALSA compiled in directly; then I re-built with ALSA enabled as modules; same result. Here's the lsmod anyway (note that the ens1371 driver is compiled into the kernel)
Code:
mysticpixel@gvm ~ $ lsmod
Module                  Size  Used by
snd_pcm_oss            28128  0
snd_mixer_oss          10467  1 snd_pcm_oss
snd_seq_oss            20876  0
snd_seq_midi_event      4765  1 snd_seq_oss
snd_seq                36963  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          4649  2 snd_seq_oss,snd_seq
vmhgfs                 30417  0
vmci                   21399  0

ALSA sees the sound card properly:
Code:
mysticpixel@gvm ~ $ cat /proc/asound/cards
 0 [AudioPCI       ]: ENS1371 - Ensoniq AudioPCI
                      Ensoniq AudioPCI ENS1371 at 0x2080, irq 16

Code:
mysticpixel@gvm ~ $ cat /proc/asound/devices
  2:        : timer
  3: [ 0- 0]: raw midi
  4: [ 0- 1]: digital audio playback
  5: [ 0- 0]: digital audio playback
  6: [ 0- 0]: digital audio capture
  7: [ 0]   : control
  8:        : sequencer

...and so does aplay, it would seem:
Code:
mysticpixel@gvm ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AudioPCI [Ensoniq AudioPCI], device 1: ES1371/2 [ES1371 DAC1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
mysticpixel@gvm ~ $ aplay -L
default:CARD=AudioPCI
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Default Audio Device
front:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Front speakers
rear:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC1
    Rear speakers
surround40:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    4.0 Surround output to Front and Rear speakers
iec958:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    IEC958 (S/PDIF) Digital Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)

But, I get no playback, just a short click-pop (like a few samples are getting dumped into the buffer), then silence:
Code:
mysticpixel@gvm ~ $ aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
underrun!!! (at least -631944736.560 ms long)
underrun!!! (at least -631944736.560 ms long)
underrun!!! (at least -631944736.560 ms long)
underrun!!! (at least -631944736.560 ms long)

If I specify a device, it's basically the same thing, but the error's a bit different:
Code:
mysticpixel@gvm ~ $ aplay --device=front /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
underrun!!! (at least 0.003 ms long)
underrun!!! (at least 0.002 ms long)

Code:
mysticpixel@gvm ~ $ aplay --device=rear /usr/share/sounds/alsa/Front_Center.wav
ALSA lib setup.c:555:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch->4ch Copy Switch',0,0,0): No such file or directory
aplay: main:608: audio open error: No such file or directory
Back to top
View user's profile Send private message
MysticPixel
n00b
n00b


Joined: 30 Nov 2004
Posts: 16

PostPosted: Mon Aug 02, 2010 7:52 pm    Post subject: Reply with quote

Tried a new VM with the 10.1 LiveDVD and I got the same error...


This link: http://www.noiseave.com/2010/02/gentoo-problems-with-sound-vmware/
seems to indicate that this is a problem with kernels newer than 2.6.30-r6... the latest install CD came up with 2.6.34-gentoo-r1, but the 10.1 LiveDVD comes up with 2.6.30-gentoo-r6 and I see the same problem. So maybe it's necessary to go back even further?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum