Analog Devices AD1981B sound codec not working on Sony Vaio desktop in Ubuntu 9.04 RC

Asked by Peter Puskas

Only started using intrepid a couple of weeks ago and have not been able to get any sound out of it.
have upgraded to jaunty, still no result. Yet, can get sound when booting into XP. have so far read nearly all posts regarding sound problems but can't find my way around it - help would be very much appreciated

since I am a very new user, I am getting completely confused with all these tips, which clearly don't achieve anything for me.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Daniel Drummond (dmdrummondx) said :
#1

Can you provide information on your computer setup - ie specifically what sound card you have, make/model of computer, as well as what you have tried already?

One common gotcha is not turning the volume up. Sounds obvious, but is easily overlooked.

Revision history for this message
Peter Puskas (ptr-puskas) said :
#2

HI, thanks for replying to my question, I was getting quite desperate

It's a Sony Vaio Desktop. where would I find the model no?

re soundcard:
**** List of PLAYBACK Hardware Devices ****
card 0: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

the latest thing i have tried, was to follow this
https://help.ubuntu.com/community/SoundTroubleshooting

whenever I play any videos or audio files, no sound (not even any system sounds)
yet volume meter shows activity, and yes volumes are all up!

Revision history for this message
Peter Puskas (ptr-puskas) said :
#3

the latest development seems to be, that I can't launch padevchooser from applet - seems to crash,
although can access the pulseaudiomanger from terminal. but from here, I am just getting more and more lost...

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

Hi,

In order to gather essential troubleshooting information about your sound card, please first follow this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy/paste each command into the Terminal and then hit <enter>)

wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && bash alsa-info.sh
cat /proc/asound/cards
asoundconf list
sudo aptitude install hwinfo gnome-alsamixer asoundconf-gtk
hwinfo --sound
aplay -l
cat /dev/sndstat
lspci -nn
lsmod | grep snd
grep audio /etc/group

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Step 4: Experiment with the audio settings in gnome-alsamixer and asoundconf-gtk until you get sound (hopefully)

=======================================================================================

Please also read the following pages

http://doc.ubuntu-fr.org/audio_intel_hda (check for correct /etc/modprobe.d/alsa-base options at bottom of this page)

https://help.ubuntu.com/community/SoundTroubleshooting

for some initial suggestions.

You should add the following string to the /etc/modprobe.d/alsa-base file

options snd-hda-intel model=YOUR_MODEL

Valid model names (that replace YOUR_MODEL) depending on the codec chip, can be found at

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-intrepid.git;a=blob_plain;f=Documentation/sound/alsa/ALSA-Configuration.txt

If you do not know your codec chip name, you can execute the following Terminal command to find out:

cat /proc/asound/card*/codec* | grep Codec

Make sure to set all channels to high volume levels in gnome-alsamixer.

Make sure all the different speakers (including 'Front', 'Master', and 'PCM") are NOT muted and NOT set to low volume levels.

If the output of the command

grep audio /etc/group

looks like this:

audio:x:81

or like this:

audio:x:81:pulse

Then replace that audio line with something like this:

audio:x:81:<your login name>

where <your login name> is the username you use to log into Ubuntu

Kind regards,

Mark

Revision history for this message
Peter Puskas (ptr-puskas) said :
#5

hi, thanks for this exhaustiv to-do list.

first of all the requested results are:

peter@peter-desktop:~$ wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && bash alsa-info.sh
--2009-04-19 11:42:03-- http://www.alsa-project.org/alsa-info.sh
Resolving www.alsa-project.org... 212.20.107.51
Connecting to www.alsa-project.org|212.20.107.51|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh [following]
--2009-04-19 11:42:03-- http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
Resolving git.alsa-project.org... 212.20.107.51
Reusing existing connection to www.alsa-project.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 25246 (25K) [text/plain]
Saving to: `alsa-info.sh'

100%[======================================>] 25,246 121K/s in 0.2s

2009-04-19 11:42:03 (121 KB/s) - `alsa-info.sh' saved [25246/25246]

WARNING: All config files need .conf: /etc/modprobe.d/alsa-base.save, it will be ignored in a future release.
WARNING: Failed to open config file alsa-base.save: Permission denied
ALSA Information Script v 0.4.56
--------------------------------

This script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem.

By default, the collected information will be AUTOMATICALLY uploaded to a www.alsa-project.org site.
If you do not wish for this to occur, run the script with the --no-upload argument

Do you want to run this script? [y/n] : cat /proc/asound/cardsy

Thank you for using the ALSA-Info Script

peter@peter-desktop:~$ asoundconf list
Names of available sound cards:
ICH5
default
peter@peter-desktop:~$

peter@peter-desktop:~$ sudo aptitude install hwinfo gnome-alsamixer asoundconf-gtk
[sudo] password for peter:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
The following NEW packages will be installed:
  hwinfo libhd15{a}
0 packages upgraded, 2 newly installed, 0 to remove and 11 not upgraded.
Need to get 718kB of archives. After unpacking 1978kB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://gb.archive.ubuntu.com jaunty/universe libhd15 15.3-1ubuntu1 [673kB]
Get:2 http://gb.archive.ubuntu.com jaunty/universe hwinfo 15.3-1ubuntu1 [44.9kB]
Fetched 718kB in 1s (676kB/s)
Selecting previously deselected package libhd15.
(Reading database ... 124103 files and directories currently installed.)
Unpacking libhd15 (from .../libhd15_15.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package hwinfo.
Unpacking hwinfo (from .../hwinfo_15.3-1ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up libhd15 (15.3-1ubuntu1) ...

Setting up hwinfo (15.3-1ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done

peter@peter-desktop:~$ hwinfo --sound
17: PCI 1f.5: 0401 Multimedia audio controller
  [Created at pci.314]
  UDI: /org/freedesktop/Hal/devices/pci_8086_24d5
  Unique ID: W60f.h6SVg3IrTf5
  SysFS ID: /devices/pci0000:00/0000:00:1f.5
  SysFS BusID: 0000:00:1f.5
  Hardware Class: sound
  Model: "Intel 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x24d5 "82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller"
  SubVendor: pci 0x104d "Sony Corporation"
  SubDevice: pci 0x815b
  Revision: 0x02
  Driver: "Intel ICH"
  Driver Modules: "snd_intel8x0"
  I/O Ports: 0xd800-0xd8ff (rw)
  I/O Ports: 0xdc00-0xdc3f (rw)
  Memory Range: 0xfebff800-0xfebff9ff (rw,non-prefetchable)
  Memory Range: 0xfebff400-0xfebff4ff (rw,non-prefetchable)
  IRQ: 17 (2473 events)
  Module Alias: "pci:v00008086d000024D5sv0000104Dsd0000815Bbc04sc01i00"
  Driver Info #0:
    Driver Status: snd_intel8x0 is active
    Driver Activation Cmd: "modprobe snd_intel8x0"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
peter@peter-desktop:~$

**** List of PLAYBACK Hardware Devices ****
card 0: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
peter@peter-desktop:~$

peter@peter-desktop:~$ cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.18rc3 emulation code)
Kernel: Linux peter-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
Intel ICH5 with AD1981B at irq 17
AKM AK5370 at usb-0000:00:1d.1-2.3, full speed

Audio devices:
0: Intel ICH5 (DUPLEX)
1: USB Audio

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Analog Devices AD1981B
1: USB Mixer
peter@peter-desktop:~$

peter@peter-desktop:~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface [8086:2570] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 82865G/PE/P PCI to AGP Controller [8086:2571] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 [8086:24d2] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 [8086:24d4] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 [8086:24d7] (rev 02)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 [8086:24de] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller [8086:24dd] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev c2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge [8086:24d0] (rev 02)
00:1f.1 IDE interface [0101]: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller [8086:24db] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller [8086:24d3] (rev 02)
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller [8086:24d5] (rev 02)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV280 [Radeon 9200] [1002:5961] (rev 01)
02:08.0 Ethernet controller [0200]: Intel Corporation 82562EZ 10/100 Ethernet Controller [8086:1050] (rev 02)
02:09.0 Communication controller [0780]: Intel Corporation 536EP Data Fax Modem [8086:1040]
02:0a.0 Multimedia video controller [0400]: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder [4444:0016] (rev 01)
02:0b.0 Multimedia controller [0480]: Pinnacle Systems Inc. AV/DV Studio Capture Card [11bd:bede]
02:0b.1 FireWire (IEEE 1394) [0c00]: Pinnacle Systems Inc. Device [11bd:0015]
02:0e.0 FireWire (IEEE 1394) [0c00]: NEC Corporation uPD72874 IEEE1394 OHCI 1.1 3-port PHY-Link Ctrlr [1033:00f2] (rev 01)
peter@peter-desktop:~$

peter@peter-desktop:~$ lsmod | grep snd
snd_intel8x0 37532 3
snd_usb_audio 90400 1
snd_usb_lib 24320 1 snd_usb_audio
snd_ac97_codec 112292 1 snd_intel8x0
snd_hwdep 15108 1 snd_usb_audio
ac97_bus 9856 1 snd_ac97_codec
snd_pcm_oss 46336 0
snd_mixer_oss 22656 1 snd_pcm_oss
snd_pcm 82948 4 snd_intel8x0,snd_usb_audio,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy 10756 0
snd_seq_oss 37760 0
snd_seq_midi 14336 0
snd_rawmidi 29696 2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event 15104 2 snd_seq_oss,snd_seq_midi
snd_seq 56880 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 29704 2 snd_pcm,snd_seq
snd_seq_device 14988 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 62628 20 snd_intel8x0,snd_usb_audio,snd_ac97_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
snd_page_alloc 16904 2 snd_intel8x0,snd_pcm
soundcore 15200 1 snd
peter@peter-desktop:~$

peter@peter-desktop:~$ grep audio /etc/group
audio:x:29:pulse,root,peter
peter@peter-desktop:~$

That's it, hope that gives the necessary answers

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

Hi,

Please try the solution here:

http://ubuntuforums.org/showthread.php?t=36382&highlight=ad1981b

Regards,

Mark

Revision history for this message
Peter Puskas (ptr-puskas) said :
#7

Hi Mark,

I found a similar post over the weekend, and the ext amp was turned off already.
I might probably ask the wrong question here:
in my listing above, there seem to be two sound cards (devce0 and device4) - am I right?
I believe I read somewhere that this can cause problems.

thanks for your help so far,

Peter

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

Hi,

Please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy/paste each command into the Terminal and then hit <enter>)

sudo aptitude update
sudo aptitude install gnome-alsamixer asoundconf-gtk

Step 3: copy-paste the following command into the Terminal:

gksudo gedit /etc/modprobe.d/alsa-base

and add these lines to the end of the file:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-intel8x0 ac97_quirk=6

Step 4; Please reboot pc after every change to the alsa-base file and retest sound

Step 5: If the ac97_quirk=6 does not help, then try one of the following options:

options snd-intel8x0 ac97_quirk=-1
options snd-intel8x0 ac97_quirk=0
options snd-intel8x0 ac97_quirk=1
options snd-intel8x0 ac97_quirk=2
options snd-intel8x0 ac97_quirk=3
options snd-intel8x0 ac97_quirk=4
options snd-intel8x0 ac97_quirk=5

Regards,

Mark

Revision history for this message
Peter Puskas (ptr-puskas) said :
#9

Dear Mark

thanks for your reply!

I just came across the following:

The suggested updates were already done previously.

regarding adding to the end of the alsa-base file: this file is actually empty, exept of one line:options snd-hda-intel snd-intel8x0.

Is that how it's supposed to be?

Thanks

Peter

--- On Tue, 21/4/09, Mark Rijckenberg <email address hidden> wrote:
From: Mark Rijckenberg <email address hidden>
Subject: Re: [Question #67864]: No sound in Jaunty 9.04
To: <email address hidden>
Date: Tuesday, 21 April, 2009, 10:34 AM

Your question #67864 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/67864

    Status: Open => Answered

Mark Rijckenberg proposed the following answer:
Hi,

Please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy/paste each command into the
Terminal and then hit <enter>)

sudo aptitude update
sudo aptitude install gnome-alsamixer asoundconf-gtk

Step 3: copy-paste the following command into the Terminal:

gksudo gedit /etc/modprobe.d/alsa-base

and add these lines to the end of the file:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-intel8x0 ac97_quirk=6

Step 4; Please reboot pc after every change to the alsa-base file and retest
sound

Step 5: If the ac97_quirk=6 does not help, then try one of the following
options:

options snd-intel8x0 ac97_quirk=-1
options snd-intel8x0 ac97_quirk=0
options snd-intel8x0 ac97_quirk=1
options snd-intel8x0 ac97_quirk=2
options snd-intel8x0 ac97_quirk=3
options snd-intel8x0 ac97_quirk=4
options snd-intel8x0 ac97_quirk=5

Regards,

Mark

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/67864/+confirm?answer_id=7

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/67864

You received this question notification because you are a direct
subscriber of the question.

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

Hi,

Please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy/paste each command into the Terminal and then hit <enter>)

sudo aptitude update
sudo aptitude install gnome-alsamixer asoundconf-gtk

Step 3: copy-paste the following command into the Terminal:

gksudo gedit /etc/modprobe.d/alsa-base

Make sure the alsa-base file ONLY contains the following 5 lines:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-intel8x0 ac97_quirk=6

Step 4; Please reboot pc after every change to the alsa-base file and retest sound

Step 5: If the ac97_quirk=6 does not help, then try one of the following options:

options snd-intel8x0 ac97_quirk=-1
options snd-intel8x0 ac97_quirk=0
options snd-intel8x0 ac97_quirk=1
options snd-intel8x0 ac97_quirk=2
options snd-intel8x0 ac97_quirk=3
options snd-intel8x0 ac97_quirk=4
options snd-intel8x0 ac97_quirk=5

Regards,

Mark

Revision history for this message
Peter Puskas (ptr-puskas) said :
#11

Hi Mark,

thanks for these suggestions,

just followed them all through (including all the quirks) but unfortunately with no positive result.

Can you think of anything else to check?

Thanks again

Peter

--- On Wed, 22/4/09, Mark Rijckenberg <email address hidden> wrote:
From: Mark Rijckenberg <email address hidden>
Subject: Re: [Question #67864]: No sound in Jaunty 9.04
To: <email address hidden>
Date: Wednesday, 22 April, 2009, 10:13 AM

Your question #67864 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/67864

    Status: Open => Answered

Mark Rijckenberg proposed the following answer:
Hi,

Please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy/paste each command into the
Terminal and then hit <enter>)

sudo aptitude update
sudo aptitude install gnome-alsamixer asoundconf-gtk

Step 3: copy-paste the following command into the Terminal:

gksudo gedit /etc/modprobe.d/alsa-base

Make sure the alsa-base file ONLY contains the following 5 lines:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-intel8x0 ac97_quirk=6

Step 4; Please reboot pc after every change to the alsa-base file and
retest sound

Step 5: If the ac97_quirk=6 does not help, then try one of the following
options:

options snd-intel8x0 ac97_quirk=-1
options snd-intel8x0 ac97_quirk=0
options snd-intel8x0 ac97_quirk=1
options snd-intel8x0 ac97_quirk=2
options snd-intel8x0 ac97_quirk=3
options snd-intel8x0 ac97_quirk=4
options snd-intel8x0 ac97_quirk=5

Regards,

Mark

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/67864/+confirm?answer_id=9

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/67864

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Nick Sung (nick-sung) said :
#12

Hi Mark,

I had followed the procedure provided by Mark, it works on my NEC Versa S820!
There is a mistake on step 3
The file to be edited should be /etc/modprobe.d/alsa-base.conf

Thank you very much, Mark

Nick

Revision history for this message
Peter Puskas (ptr-puskas) said :
#13

hi, just edited /etc/modprobe.d/alsa-base.conf as suggested above, including quirk-1 to quirk 5.
tested sound with each of them after restart and unfortunately still NO SOUND!

Is there anything else I am probably missing here?

Thanks

Peter

Revision history for this message
Nick Sung (nick-sung) said :
#14

Hi Peter,
I had installed Ubuntu 9.04 (not RC) into my old laptop (NEC Versa S820) yesterday evening.
The sound card didnot work in the begining.
I google from the internet and foundf this thread, I have the same problem like you did.
So I follow the procedures as Mark suggested above, until step 4 reboot the system, then it works.
The different is:
1. I am using a fresh new installed 9.04(Not RC).
2. I move the /etc/modprobe.d/alsa-base.conf to /etc/modprobe.d/alsa-base.conf.old for backup purpose.
3. Create a new /etc/modprobe.d/alsa-base.conf and copy/past the 5 lines like Mark said.
4. reboot the system and then it work, step 5 is not necessary.

That's what I have done, hope it will help.

Nick

Revision history for this message
johnson_bris (jwc-brisbane) said :
#15

Hi Mark
I have executed the code as specified by you

finally when trying the following code
options snd-intel8x0 ac97_quirk=3
options snd-intel8x0 ac97_quirk=4
 sound came through the head phone while booting the computer
but still there is no voice while running- Amarok, Exaile, Rhythmbox for mp3 CD
After executing the above code i have removed each of above software then rebooted and installed software again.
 can you please help
regards

Can you help with this problem?

Provide an answer of your own, or ask Peter Puskas for more information if necessary.

To post a message you must log in.