No Linux Audio in VmWare - Windows Yes

Asked by Calvin Ingram

When I first start any Linux application in VMware, it states that the sound card is out of range. I have Windows XP and Vista
also installed in VMware and it works just fine. Debian/Ubuntu do not work, with same out of range message.

My motherboard is a Gigabyte GA-X99-SLI.
The built in Audio device is a Realtek alc1150@Intel Wellsburg PCH - High Definition Audio Controller, currently
ran with two speakers (plugged into the green speaker jack).

Info from alsa dump:

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See './alsa-info.sh --help' for command line options.

Automatically upload ALSA information to www.alsa-project.org? [y/N] : y
Uploading information to www.alsa-project.org ... Done!

Your ALSA information is located at http://www.alsa-project.org/db/?f=218bb3c94d2f3ab14af41978c03c6b3faedcc3c7

Please inform the person helping you.

!!################################
!!ALSA Information Script v 0.4.64
!!################################

!!Script ran on: Sat Oct 15 16:40:55 UTC 2016

!!Linux Distribution
!!------------------

Ubuntu 16.04.1 LTS \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.1 LTS" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" UBUNTU_CODENAME=xenial

!!DMI Information
!!---------------

Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Product Version: None
Firmware Version: 6.00

!!Kernel Information
!!------------------

Kernel release: 4.4.0-43-generic
Operating System: GNU/Linux
Architecture: x86_64
Processor: x86_64
SMP Enabled: Yes

!!ALSA Version
!!------------

Driver version: k4.4.0-43-generic
Library version: 1.1.2
Utilities version: 1.1.0

!!Loaded ALSA modules
!!-------------------

snd_ens1371

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes

!!Soundcards recognised by ALSA
!!-----------------------------

 0 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
                      Ensoniq AudioPCI ENS1371 at 0x2040, irq 16

!!PCI Soundcards installed in the system
!!--------------------------------------

02:02.0 Multimedia audio controller: Ensoniq ES1371 / Creative Labs CT2518/ES1373 (rev 02)

!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------

02:02.0 0401: 1274:1371 (rev 02)
 DeviceName: sound

!!Modprobe options (Sound related)
!!--------------------------------

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_usb_audio: index=-2
snd_usb_caiaq: index=-2
snd_usb_ua101: index=-2
snd_usb_us122l: index=-2
snd_usb_usx2y: index=-2
snd_cmipci: mpu_port=0x330 fm_port=0x388
snd_pcsp: index=-2
snd_usb_audio: index=-2

!!Loaded sound module options
!!---------------------------

!!Module: snd_ens1371
 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 joystick_port : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 lineio : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 spdif : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

!!AC97 Codec information
!!----------------------
--startcollapse--

0-0/0: Cirrus Logic CS4297A rev 3

PCI Subsys Vendor: 0x1274
PCI Subsys Device: 0x1371

Flags: 4
Capabilities :
DAC resolution : 16-bit
ADC resolution : 16-bit
3D enhancement : No 3D Stereo Enhancement

Current setup
Mic gain : 0dB [ 0dB]
POP path : pre 3D
Sim. stereo : off
3D enhancement : off
Loudness : off
Mono output : MIX
Mic select : Mic1
ADC/DAC loopback : off

0:00 = 0000
0:02 = 0080
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 0000
0:0c = bfbf
0:0e = bfbf
0:10 = bfbf
0:12 = bfbf
0:14 = bfbf
0:16 = bfbf
0:18 = 0383
0:1a = 0000
0:1c = 8f0f
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 0000
0:2a = 0000
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 0000
0:38 = 0000
0:3a = 0000
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0000
0:74 = 0000
0:76 = 0000
0:78 = 0000
0:7a = 0000
0:7c = 4352
0:7e = 5913
--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116, 2 Oct 15 09:39 /dev/snd/controlC0
crw-rw---- 1 root audio 116, 6 Oct 15 09:39 /dev/snd/midiC0D0
crw-rw---- 1 root audio 116, 4 Oct 15 09:39 /dev/snd/pcmC0D0c
crw-rw---- 1 root audio 116, 3 Oct 15 09:39 /dev/snd/pcmC0D0p
crw-rw---- 1 root audio 116, 5 Oct 15 09:39 /dev/snd/pcmC0D1p
crw-rw---- 1 root audio 116, 1 Oct 15 09:39 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Oct 15 09:39 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Oct 15 09:39 .
drwxr-xr-x 3 root root 200 Oct 15 09:39 ..
lrwxrwxrwx 1 root root 12 Oct 15 09:39 pci-0000:02:02.0 -> ../controlC0

!!Aplay/Arecord output
!!--------------------

APLAY

**** 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

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [AudioPCI]

Card hw:0 'AudioPCI'/'Ensoniq AudioPCI ENS1371 at 0x2040, irq 16'
  Mixer name : 'Cirrus Logic CS4297A rev 3'
  Components : 'AC97a:43525913'
  Controls : 26
  Simple ctrls : 13
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Mono:
  Front Left: Playback 63 [100%] [0.00dB] [on]
  Front Right: Playback 63 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Mono:
  Front Left: Playback 60 [95%] [55.50dB] [on]
  Front Right: Playback 60 [95%] [55.50dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [on]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [on]
Simple mixer control 'Mic Boost ( 20dB)',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Video',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'Phone',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Aux',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 15 [100%] [22.50dB] [off]
  Front Right: Capture 15 [100%] [22.50dB] [off]
Simple mixer control 'Mix',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]

!!Alsactl output
!!--------------

--startcollapse--
state.AudioPCI {
 control.1 {
  iface MIXER
  name 'Master Playback Switch'
  value true
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.2 {
  iface MIXER
  name 'Master Playback Volume'
  value.0 63
  value.1 63
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -9450
   dbmax 0
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.3 {
  iface MIXER
  name 'Phone Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.4 {
  iface MIXER
  name 'Phone Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 -3450
   dbvalue.1 -3450
  }
 }
 control.5 {
  iface MIXER
  name 'Mic Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.6 {
  iface MIXER
  name 'Mic Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 -3450
   dbvalue.1 -3450
  }
 }
 control.7 {
  iface MIXER
  name 'Mic Boost ( 20dB)'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.8 {
  iface MIXER
  name 'Line Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.9 {
  iface MIXER
  name 'Line Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 -3450
   dbvalue.1 -3450
  }
 }
 control.10 {
  iface MIXER
  name 'CD Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.11 {
  iface MIXER
  name 'CD Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 -3450
   dbvalue.1 -3450
  }
 }
 control.12 {
  iface MIXER
  name 'Video Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.13 {
  iface MIXER
  name 'Video Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 -3450
   dbvalue.1 -3450
  }
 }
 control.14 {
  iface MIXER
  name 'Aux Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.15 {
  iface MIXER
  name 'Aux Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 -3450
   dbvalue.1 -3450
  }
 }
 control.16 {
  iface MIXER
  name 'PCM Playback Switch'
  value true
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.17 {
  iface MIXER
  name 'PCM Playback Volume'
  value.0 60
  value.1 60
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 63'
   dbmin -3450
   dbmax 6000
   dbvalue.0 5550
   dbvalue.1 5550
  }
 }
 control.18 {
  iface MIXER
  name 'Capture Source'
  value.0 Mic
  value.1 Mic
  comment {
   access 'read write'
   type ENUMERATED
   count 2
   item.0 Mic
   item.1 CD
   item.2 Video
   item.3 Aux
   item.4 Line
   item.5 Mix
   item.6 'Mix Mono'
   item.7 Phone
  }
 }
 control.19 {
  iface MIXER
  name 'Capture Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.20 {
  iface MIXER
  name 'Capture Volume'
  value.0 15
  value.1 15
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 15'
   dbmin 0
   dbmax 2250
   dbvalue.0 2250
   dbvalue.1 2250
  }
 }
 control.21 {
  iface MIXER
  name 'IEC958 Playback Con Mask'
  value '0fff000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.22 {
  iface MIXER
  name 'IEC958 Playback Pro Mask'
  value cf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.23 {
  iface MIXER
  name 'IEC958 Playback Default'
  value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access 'read write'
   type IEC958
   count 1
  }
 }
 control.24 {
  iface MIXER
  name 'IEC958 Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.25 {
  iface PCM
  name 'Playback Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
 control.26 {
  iface PCM
  device 1
  name 'Playback Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
}
--endcollapse--

!!All Loaded Modules
!!------------------

Module
coretemp
crct10dif_pclmul
crc32_pclmul
aesni_intel
aes_x86_64
lrw
gf128mul
glue_helper
vmw_balloon
ablk_helper
cryptd
snd_ens1371
snd_ac97_codec
gameport
ac97_bus
snd_pcm
snd_seq_midi
snd_seq_midi_event
vmw_vsock_vmci_transport
vsock
snd_rawmidi
input_leds
joydev
serio_raw
snd_seq
snd_seq_device
snd_timer
snd
i2c_piix4
soundcore
vmw_vmci
shpchp
nfit
8250_fintek
mac_hid
parport_pc
ppdev
lp
parport
autofs4
hid_generic
usbhid
hid
vmwgfx
ttm
psmouse
drm_kms_helper
syscopyarea
sysfillrect
sysimgblt
fb_sys_fops
ahci
libahci
e1000
mptspi
mptscsih
drm
mptbase
scsi_transport_spi
pata_acpi
fjes

!!ALSA/HDA dmesg
!!--------------

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Solved by:
Calvin Ingram
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you tried different audio settings in the VM settings?

Did you install the VMware guest additions?

Revision history for this message
Calvin Ingram (cingram56) said :
#2

Just fixed this issue as this email response came in.

The windows setting for the Realtek driver requires that you disable the front panel jack detection. Once this is done,
VMware recognizes the hardware, allowing the Linux virtual machine to use the hardware. This initially stumped me
because sound was working in both Vista and Windows XP, which I also have on this VmWare Workstation. Apparently VmWare/Linux needs this detection setting disabled. Anyway, problem solved, and the Bose speakers are now
working just fine.....Thanks

Revision history for this message
Calvin Ingram (cingram56) said :
#3

Just fixed this issue as this email came in. The windows setting for the Realtek driver requires that you disable
the front panel jack detection. Once this is done, VMware recognizes the hardware, allowing the linux virtual
machine to use the hardware. This initially stumped me because sound was working in both Vista and Windows
XP, which I also have on my VmWare Workstation. Apparently VmWare/Linux needs this detection setting
Disabled. Anyway, problem solved, and bose speakers working just fine.....Thanks

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of actionparsnip
Sent: Saturday, October 15, 2016 11:47 AM
To: <email address hidden>
Subject: Re: [Question #403050]: No Linux Audio in VmWare - Windows Yes

Your question #403050 on alsa-driver in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/alsa-driver/+question/403050

    Status: Open => Needs information

actionparsnip requested more information:
Have you tried different audio settings in the VM settings?

Did you install the VMware guest additions?

--
To answer this request for more information, you can either reply to this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+source/alsa-driver/+question/403050

You received this question notification because you asked the question.