Bug 5126 - No sound on Thinkpad X31 (Intel 82801DB-ICH4)
Summary: No sound on Thinkpad X31 (Intel 82801DB-ICH4)
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Diego Calleja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 14:44 UTC by Josef Gasteiger
Modified: 2006-07-30 09:31 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.14
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
The asound.state file (4.67 KB, text/plain)
2005-09-25 07:02 UTC, Josef Gasteiger
Details
The ac97#0-0 file. (602 bytes, text/plain)
2005-09-25 07:08 UTC, Josef Gasteiger
Details
The ac97#0-0+regs file. (768 bytes, text/plain)
2005-09-25 07:10 UTC, Josef Gasteiger
Details

Description Josef Gasteiger 2005-08-24 14:44:44 UTC
Most recent kernel where this bug did not occur: With 2.6.10 I had no problems

Distribution: Debian Sarge

Hardware Environment: Thinkpad X31
output of "cat /proc/asound/cards":          
0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                     Intel 82801DB-ICH4 with AD1981B at 0xc0000c00, irq 11

Software Environment: alsa-base 1.0.8-7 debian package

Problem Description:
You can play music e.g. with xmms or noatum as usual. But there is nothing
coming from the speaker. There is also no hint in syslog.
Kmix also works as usual (but the speaker keeps silent).
Running alsaconf doesn't solve the problem.
2.6.13-rc5 had the same problem. With 2.6.10 sound works.

Steps to reproduce:
My .config: http://ro-wetter.dyndns.org/pics/.config
Comment 1 Josef Gasteiger 2005-08-24 14:47:49 UTC
Sorry I've forgotten the loaded modules:
ibm_acpi               30080  0 
eth1394                20680  0 
pcmcia                 38928  4 
arc4                    1856  1 
ieee80211_crypt_wep     5316  1 
rtc                    13560  0 
snd_intel8x0           34048  1 
snd_ac97_codec         86652  1 snd_intel8x0
snd_pcm_oss            53408  0 
snd_mixer_oss          19712  1 snd_pcm_oss
snd_pcm                93960  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              25860  1 snd_pcm
snd                    55076  8
snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               9952  1 snd
snd_page_alloc         10888  2 snd_intel8x0,snd_pcm
i2c_i801                8908  0 
i2c_core               21776  1 i2c_i801
intel_agp              23452  1 
agpgart                36232  1 intel_agp
ehci_hcd               35272  0 
uhci_hcd               34768  0 
usbcore               124156  3 ehci_hcd,uhci_hcd
ipw2100               152004  0 
firmware_class         10368  1 ipw2100
ieee80211              39844  1 ipw2100
ieee80211_crypt         6088  3 ieee80211_crypt_wep,ipw2100,ieee80211
e1000                 106996  0 
ohci1394               36340  0 
ieee1394              103672  2 eth1394,ohci1394
yenta_socket           25996  4 
rsrc_nonstatic         12416  1 yenta_socket
pcmcia_core            43472  3 pcmcia,yenta_socket,rsrc_nonstatic
ntfs                  202768  1 
tun                    11648  0 
evdev                   9344  0 
unix                   28784  207 
Comment 2 Takashi Iwai 2005-09-06 05:07:34 UTC
Check the codec listed in /proc/asound/card0/codec97#0/ac97#0-0.
If it's AD1981*, you may have "Line Jack Sense" and "Headphone Jack Sense" mixer
switche.  Toggle them on/off.
Also, if you have "External Amplifier" mixer switch, turn it on.
Or, unmute/raise "Master Mono" and "Headphone" mixer controls if exist.
Comment 3 Josef Gasteiger 2005-09-07 02:51:25 UTC
Thanks for your help! But unfortunately there is still nothing coming from the
speaker.
The codec is "Analog Devices AD1981B" and it has the "Line Jack Sense", the
"Headphone Jack Sense" and the "External Amplifier" mixer switches. But changing
them doesn't make sound work. "Master Mono" and "Headphone" mixer controls don't
help either.
(btw the OSS-module i810_audio works)
Comment 4 Josef Gasteiger 2005-09-07 03:01:08 UTC
When I run alsaconf the following is writen in the syslog file:

udev[3636]: removing device node '/dev/mixer'
udev[3638]: removing device node '/dev/snd/controlC0'
udev[3640]: removing device node '/dev/snd/pcmC0D4p'
udev[3642]: removing device node '/dev/snd/pcmC0D3c'
udev[3644]: removing device node '/dev/snd/pcmC0D2c'
udev[3646]: removing device node '/dev/snd/pcmC0D1c'
udev[3648]: removing device node '/dev/adsp'
udev[3679]: removing device node '/dev/snd/pcmC0D0p'
udev[3681]: removing device node '/dev/snd/pcmC0D0c'
udev[3683]: removing device node '/dev/dsp'
udev[3685]: removing device node '/dev/audio'
udev[3732]: removing device node '/dev/snd/timer'
udev[4243]: configured rule in '/etc/udev/rules.d/udev.rules[61]' applied,
'timer' becomes 'snd/%k'
udev[4243]: creating device node '/dev/snd/timer'
kernel: PCI: Found IRQ 11 for device 0000:00:1f.5
kernel: PCI: Sharing IRQ 11 with 0000:00:1f.3
kernel: PCI: Sharing IRQ 11 with 0000:02:00.1
kernel: PCI: Setting latency timer of device 0000:00:1f.5 to 64
kernel: intel8x0_measure_ac97_clock: measured 55089 usecs
kernel: intel8x0: clocking to 48000
udev[4317]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied,
'pcmC0D4p' becomes 'snd/%k'
udev[4317]: creating device node '/dev/snd/pcmC0D4p'
udev[4319]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied,
'pcmC0D3c' becomes 'snd/%k'
udev[4319]: creating device node '/dev/snd/pcmC0D3c'
udev[4321]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied,
'pcmC0D2c' becomes 'snd/%k'
udev[4321]: creating device node '/dev/snd/pcmC0D2c'
udev[4323]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied,
'pcmC0D1c' becomes 'snd/%k'
udev[4323]: creating device node '/dev/snd/pcmC0D1c'
udev[4325]: creating device node '/dev/adsp'
udev[4327]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied,
'pcmC0D0p' becomes 'snd/%k'
udev[4327]: creating device node '/dev/snd/pcmC0D0p'
udev[4329]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied,
'pcmC0D0c' becomes 'snd/%k'
udev[4329]: creating device node '/dev/snd/pcmC0D0c'
udev[4364]: creating device node '/dev/dsp'
udev[4366]: creating device node '/dev/audio'
udev[4368]: configured rule in '/etc/udev/rules.d/udev.rules[57]' applied,
'controlC0' becomes 'snd/%k'
udev[4368]: creating device node '/dev/snd/controlC0'
udev[4370]: creating device node '/dev/mixer'
Comment 5 Takashi Iwai 2005-09-23 03:58:03 UTC
Please show /etc/asound.state (or something else on debian).  I still suspect
it's a mixer configuration issue.
Also attaching the contents of /proc/asound/card0/codec97#0/* files would be
helpful, too.
Comment 6 Josef Gasteiger 2005-09-25 07:02:10 UTC
Created attachment 6139 [details]
The asound.state file
Comment 7 Josef Gasteiger 2005-09-25 07:08:54 UTC
Created attachment 6140 [details]
The ac97#0-0 file.
Comment 8 Josef Gasteiger 2005-09-25 07:10:15 UTC
Created attachment 6141 [details]
The ac97#0-0+regs file.
Comment 9 James Courtier-Dutton 2005-10-16 08:57:50 UTC
Try running speaker-test
speaker-test -c2 -Dplug:front
speaker-test -c4 -Dplug:surround40
speaker-test -c6 -Dplug:surround51

If sound comes out, please tell use which speaker speaker-test thinks it is
outputting from.
Also, while the test in running, try toggling external amp using the M key in
alsamixer.

Comment 10 Josef Gasteiger 2005-11-05 12:35:46 UTC
I tried running speaker-test, but there is no sound coming out :-(
(using kernel 2.6.14)
Comment 11 Alexandre Rossi 2005-11-14 05:19:35 UTC
There are multiple clues on the Web that many laptops using this sound chipset
must mute (in alsamixer) the 'external amplifier' to be able able to hear sound.

For example, this is the case of my laptop (Vaio VGN-B1VP).

This may be the issue here.
Comment 12 Josef Gasteiger 2005-11-14 07:17:34 UTC
> mute (in alsamixer) the 'external amplifier' to be able able to hear sound

I'm sorry, but that doesn't help.
Comment 13 Lee Revell 2006-01-20 18:54:12 UTC
Any improvement in later ALSA releases?
Comment 14 Josef Gasteiger 2006-01-22 06:08:23 UTC
With kernel 2.6.15.1 there is no difference.

I tested KANOTIX 2005-04 with alsa (alsa-lib 1.0.10, kernel 2.6.14.5). There the
sound worked. hmm...
Comment 15 Takashi Iwai 2006-01-31 02:48:52 UTC
Turn off 'Headphone Jack Sense' and 'Line Jack Sense' swithes.
Comment 16 Bryan O'Sullivan 2006-02-03 19:48:51 UTC
I have an X31 for years, and have never noticed a single sound problem.  I'm
running 2.6.15, fc5t2.
Comment 17 Josef Gasteiger 2006-02-04 01:40:50 UTC
> Turn off 'Headphone Jack Sense' and 'Line Jack Sense' swithes.

Great, sound now works! Many thanks! 
Comment 18 paolo 2006-04-16 00:32:55 UTC
> Turn off 'Headphone Jack Sense'

that's the guilty switch on a Toshiba Satellite A40 too: sound was ok on K2.4.x
but no sound as I switched to K2.6.x. None of the ac97_quirk has any effect.

amixer sset 'Headphone Jack Sense' off && alsactl store

did the trick


thanks!
Comment 19 Diego Calleja 2006-07-30 09:30:01 UTC
As the reporter says, this has been fixed, so I'm closing it.

Note You need to log in before you can comment on or make changes to this bug.