Ubuntu 16.04 no sound with asus Xonar DG

Asked by Matthias

Hello,

after my first installation of Ubuntu 16.04 I've now more sound, soundcard ASUS XONAR DG works well on the same PC in a dualboot installation of Windows 7 SP1 32bit. I've tried several things and the last what I did was the following command
which I found on https://help.ubuntu.com/community/SoundTroubleshootingProcedure

sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop linux-image-`uname -r` libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status; sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

the output I got is as follows, any idea what can I do ??

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

Ubuntu 16.04 LTS \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04 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: System manufacturer
Product Name: P5K
Product Version: System Version
Firmware Version: 1201

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

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

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

Driver version:
Library version: 1.1.0
Utilities version: 1.1.0

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

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

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

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

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

05:02.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]

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

05:02.0 0401: 13f6:8788
 Subsystem: 1043:8467

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

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

crw-rw---- 1 root audio 116, 1 Jun 5 14:50 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Jun 5 14:50 /dev/snd/timer

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

APLAY

aplay: device_list:268: no soundcards found...

ARECORD

arecord: device_list:268: no soundcards found...

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

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

--startcollapse--
--endcollapse--

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

Module
nvidia_uvm
nvidia
gpio_ich
coretemp
kvm_intel
joydev
input_leds
kvm
irqbypass
drm
serio_raw
lpc_ich
8250_fintek
shpchp
asus_atk0110
mac_hid
parport_pc
ppdev
lp
parport
autofs4
hid_generic
usbhid
hid
firewire_ohci
pata_acpi
firewire_core
atl1
crc_itu_t
mii
ahci
pata_jmicron
libahci
floppy
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:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

There is no ALSA driver version which is the issue

Revision history for this message
Matthias (ma4850) said :
#2

what I further did was:

If the ALSA driver version number in the Terminal output does NOT contain anything at all, please execute the following commands, then reboot and retest sound output using headphones and speakers:

sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily

sudo apt-get update

sudo apt-get install linux-image-extra-`uname -r`

sudo apt-get install --reinstall linux-image-extra-`uname -r`

sudo apt-get install oem-audio-hda-daily-dkms

Then reboot and retest sound output.

Revision history for this message
Matthias (ma4850) said :
#3

thank you for your support, unfortunately after having installed the ALSA driver there is still no sound !! Due to the fact that i'm a Ubuntu beginner I'm still searching for a workaround/solution,

currently system gives me the following information, any idea ?

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

!!Script ran on: Sun Jun 5 13:33:04 UTC 2016

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

Ubuntu 16.04 LTS \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04 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: System manufacturer
Product Name: P5K
Product Version: System Version
Firmware Version: 1201

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

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

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

Driver version: k4.4.0-22-generic
Library version: 1.1.0
Utilities version: 1.1.0

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

snd_oxygen

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

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

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

 0 [DG ]: CMI8786 - Xonar DG
                      C-Media Oxygen HD Audio at 0xe800, irq 18

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

05:02.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]

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

05:02.0 0401: 13f6:8788
 Subsystem: 1043:8467

!!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_oxygen
 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

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

crw-rw---- 1 root audio 116, 2 Jun 5 15:28 /dev/snd/controlC0
crw-rw---- 1 root audio 116, 4 Jun 5 15:29 /dev/snd/pcmC0D0c
crw-rw---- 1 root audio 116, 3 Jun 5 15:29 /dev/snd/pcmC0D0p
crw-rw---- 1 root audio 116, 6 Jun 5 15:29 /dev/snd/pcmC0D1c
crw-rw---- 1 root audio 116, 5 Jun 5 15:29 /dev/snd/pcmC0D1p
crw-rw---- 1 root audio 116, 1 Jun 5 15:28 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Jun 5 15:28 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Jun 5 15:28 .
drwxr-xr-x 3 root root 200 Jun 5 15:28 ..
lrwxrwxrwx 1 root root 12 Jun 5 15:28 pci-0000:05:02.0 -> ../controlC0

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

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: DG [Xonar DG], device 0: Multichannel [Multichannel]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: DG [Xonar DG], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: DG [Xonar DG], device 0: Multichannel [Multichannel]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: DG [Xonar DG], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

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

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

Card hw:0 'DG'/'C-Media Oxygen HD Audio at 0xe800, irq 18'
  Mixer name : 'CMI8786'
  Components : 'CS4245 CMI8786'
  Controls : 22
  Simple ctrls : 13
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 214 [84%] [-20.18dB] [on]
  Front Right: Playback 214 [84%] [-20.18dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]
Simple mixer control 'Line',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture 0 [50%] [0.00dB] [on]
  Front Right: Capture 0 [50%] [0.00dB] [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Loopback',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Validity Check',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Aux',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]
Simple mixer control 'ADC High-pass Filter',0
  Capabilities: cenum
  Items: 'Active' 'Frozen'
  Item0: 'Active'
Simple mixer control 'Analog Input Monitor',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 1
  Mono: Playback 1 [100%] [0.00dB] [off]
Simple mixer control 'Analog Output',0
  Capabilities: penum
  Items: 'Stereo Headphones' 'Stereo Headphones FP' 'Multichannel'
  Item0: 'Stereo Headphones FP'
Simple mixer control 'Digital Input Monitor',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 1
  Mono: Playback 1 [100%] [0.00dB] [off]
Simple mixer control 'Stereo Upmixing',0
  Capabilities: enum
  Items: 'Front' 'Front Surround'
  Item0: 'Front Surround'

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

--startcollapse--
state.DG {
 control.1 {
  iface MIXER
  name 'Stereo Upmixing'
  value Front Surround
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Front
   item.1 Front Surround
  }
 }
 control.2 {
  iface MIXER
  name 'IEC958 Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.3 {
  iface PCM
  device 1
  name 'IEC958 Playback Default'
  value '0482000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access 'read write'
   type IEC958
   count 1
  }
 }
 control.4 {
  iface PCM
  device 1
  name 'IEC958 Playback Con Mask'
  value '3eff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.5 {
  iface PCM
  device 1
  name 'IEC958 Playback PCM Stream'
  value '0482000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access 'read write inactive'
   type IEC958
   count 1
  }
 }
 control.6 {
  iface PCM
  device 1
  name 'IEC958 Capture Mask'
  value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.7 {
  iface PCM
  device 1
  name 'IEC958 Capture Default'
  value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.8 {
  iface MIXER
  name 'IEC958 Loopback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.9 {
  iface MIXER
  name 'IEC958 Validity Check Capture Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.10 {
  iface MIXER
  name 'Analog Input Monitor Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.11 {
  iface MIXER
  name 'Analog Input Monitor Playback Volume'
  value 1
  comment {
   access 'read write'
   type INTEGER
   count 1
   range '0 - 1'
   dbmin -600
   dbmax 0
   dbvalue.0 0
  }
 }
 control.12 {
  iface MIXER
  name 'Digital Input Monitor Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.13 {
  iface MIXER
  name 'Digital Input Monitor Playback Volume'
  value 1
  comment {
   access 'read write'
   type INTEGER
   count 1
   range '0 - 1'
   dbmin -600
   dbmax 0
   dbvalue.0 0
  }
 }
 control.14 {
  iface MIXER
  name 'Analog Output Playback Enum'
  value 'Stereo Headphones FP'
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 'Stereo Headphones'
   item.1 'Stereo Headphones FP'
   item.2 Multichannel
  }
 }
 control.15 {
  iface MIXER
  name 'Headphone Playback Volume'
  value.0 214
  value.1 214
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 255'
   dbmin -12550
   dbmax 0
   dbvalue.0 -2018
   dbvalue.1 -2018
  }
 }
 control.16 {
  iface MIXER
  name 'Headphone Playback Switch'
  value true
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.17 {
  iface MIXER
  name 'Mic Capture Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '-24 - 24'
   dbmin -1200
   dbmax 1200
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.18 {
  iface MIXER
  name 'Front Mic Capture Volume'
  value.0 -24
  value.1 -24
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '-24 - 24'
   dbmin -1200
   dbmax 1200
   dbvalue.0 -1200
   dbvalue.1 -1200
  }
 }
 control.19 {
  iface MIXER
  name 'Line Capture Volume'
  value.0 -24
  value.1 -24
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '-24 - 24'
   dbmin -1200
   dbmax 1200
   dbvalue.0 -1200
   dbvalue.1 -1200
  }
 }
 control.20 {
  iface MIXER
  name 'Aux Capture Volume'
  value.0 -24
  value.1 -24
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '-24 - 24'
   dbmin -1200
   dbmax 1200
   dbvalue.0 -1200
   dbvalue.1 -1200
  }
 }
 control.21 {
  iface MIXER
  name 'Capture Source'
  value Mic
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Mic
   item.1 'Front Mic'
   item.2 Line
   item.3 Aux
  }
 }
 control.22 {
  iface MIXER
  name 'ADC High-pass Filter Capture Enum'
  value Active
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Active
   item.1 Frozen
  }
 }
}
--endcollapse--

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

Module
nvidia_uvm
nvidia
snd_oxygen
snd_oxygen_lib
snd_mpu401_uart
gpio_ich
snd_pcm
snd_seq_midi
coretemp
snd_seq_midi_event
snd_rawmidi
snd_seq
kvm_intel
snd_seq_device
kvm
joydev
input_leds
snd_timer
snd
soundcore
drm
irqbypass
serio_raw
lpc_ich
shpchp
8250_fintek
asus_atk0110
mac_hid
parport_pc
ppdev
lp
parport
autofs4
hid_generic
usbhid
hid
firewire_ohci
firewire_core
crc_itu_t
pata_acpi
ahci
libahci
atl1
mii
pata_jmicron
floppy
fjes

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

Revision history for this message
Matthias (ma4850) said :
#4

I found in the above report that I've different ALSA versions on my installation, what could cause the problem.
I really do not understand why this can happen after a new installation, however how can I cnage the library versions to k4.4.0-22-geeric ?

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

Driver version: k4.4.0-22-generic
Library version: 1.1.0
Utilities version: 1.1.0

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#5

This is OK:

Driver version: k4.4.0-22-generic
Library version: 1.1.0
Utilities version: 1.1.0

However, this is NOT OK:

Simple mixer control 'Line',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]

Please run alsamixer in a Terminal session. Unmute and increase volume to 100% on the following mixer channels:

Simple mixer control 'Front Mic',0
Simple mixer control 'Line',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Loopback',0
Simple mixer control 'IEC958 Validity Check',0
Simple mixer control 'Aux',0
Simple mixer control 'Analog Input Monitor',0
Simple mixer control 'Digital Input Monitor',0

Then retest sound output using headphones and speakers.

Test all audio jacks at the front and the back of your PC.

Revision history for this message
Matthias (ma4850) said :
#6

Thanks Mark Rijckenberg, that solved my question.