[ltp] ALSA Sound IBM Thinkpad X23

Todd V. Rovito linux-thinkpad@linux-thinkpad.org
Mon, 12 Jul 2004 20:39:15 -0400


Greetings,
    I have a problem loading the ALSA drivers on a IBM Thinkpad X23 Laptop.
After reading several Laptop Howto's I am convinced that the driver to 
use is
snd-intel8x0 and I have confirmed that with "lspci -v".  When I attempt 
to load
the drivers I get the following errors:
    "ALSA ../../alsa-kernel/pci/ac97/ac97_codec.c:1860: AC'97 0 does not 
respond
    - RESET"
    "insmod: /lib/modules/2.4.25/kernel/sound/pci/snd-intel8x0.o: 
init_module:
    No such device"
    "insmod: /lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0.o: Hint: 
insmod errors
    can be caused by incorrect module parameters, including invalid IO 
or IRQ
    parameters.  You may find more information in syslog or the output from
    dmesg"
    "insmod: /lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0.o: insmod 
snd-card-0
    failed"

The commands to load the drivers are listed below.

You can find the exact error message from syslog in the snippet below.  I am
not using the ALSA packages from Slackware (I did and I got the same
error so I compiled everything by following the directions at the
alsa-project.org website).  After some time working with ALSA I attempted to
use the Linux Kernel Sound Drivers so I compiled the following modules:
    soundcore.o
    sound.o
    i810_audio.o
    ac97_codec.o

These drivers load correctly but XMMS plays songs in slow motion that sound
like a record player set to the wrong speed.  

Here is the strange part if I follow these steps
1) load the Linux Kernel Sound Drivers (soundcore.o sound.o i810_audio.o 
and ac97_codec.o NOT ALSA drivers)

2) Remove drivers (i810_audio.o ac97_codec.o), this leaves soundcore.o 
and sound.o drivers in the kernel

3) Then load the ALSA drivers with the commands listed below

At this point the ALSA drivers load and everything is working.  My 
hypothesis
is that by loading the Linux Kernel Drivers something in the hardware gets
initiated that ALSA is not doing.  Does anybody have a solution for the
problem?  I really don't want to load, unload, then load ALSA again to 
get it
to work, seems like a flaky solution.

Thanks for the help!


/var/log/syslog =================================================
Jul 12 12:25:38 tp kernel: PCI: Enabling device 00:1f.5 (0000 -> 0001)
Jul 12 12:25:39 tp kernel: ALSA 
../../alsa-kernel/pci/ac97/ac97_codec.c:1860: AC'97 0 does not respond - 
RESET
Jul 12 12:25:39 tp modprobe: modprobe: Can't locate module snd-seq-client-62
Jul 12 12:25:40 tp kernel: ALSA 
../../alsa-kernel/pci/ac97/ac97_codec.c:1860: AC'97 0 does not respond - 
RESET
Jul 12 12:25:40 tp insmod: 
/lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0.o: init_module: No 
such device
Jul 12 12:25:40 tp insmod: 
/lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0.o: Hint: insmod errors 
can be caused by incorrect module parameters, including invalid IO or 
IRQ parameters.       You may find more information in syslog or the 
output from dmesg
Jul 12 12:25:40 tp insmod: 
/lib/modules/2.4.26/kernel/sound/pci/snd-intel8x0.o: insmod snd-card-0 
failed
=============================================================================

Commands to load alsa 
=======================================================
modprobe snd-ac97-codec
modprobe snd-intel8x0 ac97_clock=48000
modprobe snd-pcm-oss
modprobe snd-mixer-oss
modprobe snd-seq-oss
============================================================================

Software Versions ==========================================================
Linux 2.4.26
alsa-driver 1.0.5a
alsa-lib 1.0.5
alsa-oss 1.0.5
alsa-utils 1.0.5
Slackware 10.0
============================================================================


PCI configuration from lspci -v 
=============================================
00:00.0 Host bridge: Intel Corp. 82830 830 Chipset Host Bridge (rev 04)
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, fast devsel, latency 0
    Memory at d0000000 (32-bit, prefetchable) [size=256M]
    Capabilities: [40] #09 [1105]
    Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corp. 82830 830 Chipset AGP Bridge (rev 04) 
(prog-if 00 [Normal decode])
    Flags: bus master, 66Mhz, fast devsel, latency 96
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
    I/O behind bridge: 00003000-00003fff
    Memory behind bridge: c0100000-c01fffff
    Prefetchable memory behind bridge: e0000000-e7ffffff

00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02) 
(prog-if 00 [UHCI])
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, medium devsel, latency 0, IRQ 11
    I/O ports at 1800 [size=32]

00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02) 
(prog-if 00 [UHCI])
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, medium devsel, latency 0, IRQ 11
    I/O ports at 1820 [size=32]

00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02) 
(prog-if 00 [UHCI])
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: medium devsel, IRQ 11
    I/O ports at 1840 [size=32]

00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 42) 
(prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=02, subordinate=08, sec-latency=64
    I/O behind bridge: 00004000-00008fff
    Memory behind bridge: c0200000-cfffffff
    Prefetchable memory behind bridge: e8000000-f00fffff

00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
    Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02) (prog-if 
8a [Master SecP PriP])
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, medium devsel, latency 0, IRQ 11
    I/O ports at <ignored>
    I/O ports at <ignored>
    I/O ports at <ignored>
    I/O ports at <ignored>
    I/O ports at 1860 [size=16]
    Memory at 28000000 (32-bit, non-prefetchable) [disabled] [size=1K]

00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus Controller (rev 02)
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: medium devsel, IRQ 10
    I/O ports at 1880 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio 
Controller (rev 02)
    Subsystem: IBM ThinkPad T23 (2647-4MG) or A30/A30p (2652/2653)
    Flags: bus master, medium devsel, latency 0, IRQ 10
    I/O ports at 1c00 [size=256]
    I/O ports at 18c0 [size=64]

00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem Controller (rev 02) 
(prog-if 00 [Generic])
    Subsystem: IBM: Unknown device 0227
    Flags: medium devsel, IRQ 10
    I/O ports at 2400 [size=256]
    I/O ports at 2000 [size=128]

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility 
M6 LY (prog-if 00 [VGA])
    Subsystem: IBM ThinkPad X22/X23/X24
    Flags: bus master, stepping, fast Back2Back, 66Mhz, medium devsel, 
latency 66, IRQ 11
    Memory at e0000000 (32-bit, prefetchable) [size=128M]
    I/O ports at 3000 [size=256]
    Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
    Expansion ROM at <unassigned> [disabled] [size=128K]
    Capabilities: [58] AGP version 2.0
    Capabilities: [50] Power Management version 2

02:03.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, medium devsel, latency 168, IRQ 11
    Memory at 50000000 (32-bit, non-prefetchable) [size=4K]
    Bus: primary=02, secondary=03, subordinate=05, sec-latency=176
    Memory window 0: 28400000-287ff000 (prefetchable)
    Memory window 1: 28800000-28bff000
    I/O window 0: 00004000-000040ff
    I/O window 1: 00004400-000044ff
    16-bit legacy interface ports at 0001

02:03.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, medium devsel, latency 168, IRQ 10
    Memory at 50100000 (32-bit, non-prefetchable) [size=4K]
    Bus: primary=02, secondary=06, subordinate=08, sec-latency=176
    Memory window 0: 28c00000-28fff000 (prefetchable)
    Memory window 1: 29000000-293ff000
    I/O window 0: 00004800-000048ff
    I/O window 1: 00004c00-00004cff
    16-bit legacy interface ports at 0001

02:05.0 Network controller: Harris Semiconductor Prism 2.5 Wavelan 
chipset (rev 01)
    Subsystem: Actiontec Electronics Inc: Unknown device 0406
    Flags: bus master, medium devsel, latency 64, IRQ 11
    Memory at f0000000 (32-bit, prefetchable) [size=4K]
    Capabilities: [dc] Power Management version 2

02:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3) PRO/100 VE 
(LOM) Ethernet Controller (rev 42)
    Subsystem: IBM ThinkPad A/T/X Series
    Flags: bus master, medium devsel, latency 66, IRQ 11
    Memory at c0200000 (32-bit, non-prefetchable) [size=4K]
    I/O ports at 8000 [size=64]
    Capabilities: [dc] Power Management version 2
============================================================================