[ltp] Thinkpad 600X: Alsa driver won't unload

Philipp Drewes linux-thinkpad@linux-thinkpad.org
Wed, 8 Jan 2003 01:42:09 +0100 (CET)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I use a Thinkpad 600X with alsa driver cs46xx. When I try to unload the
driver using "/usr/init.d/alsa stop" I am prompted

frankfurt:/etc/modutils # /etc/init.d/alsa stop
Storing ALSA mixer settings...done.
Shutting down ALSA sound driver (version 0.9.0rc5): PCI: Found IRQ 11 for
device 00:06.0
PCI: Sharing IRQ 11 with 00:02.0
PCI: Sharing IRQ 11 with 01:00.0
ALSA ../../alsa-kernel/pci/cs46xx/cs46xx_lib.c:3300: Crystal EAPD support
forced on.
done.

The following lsmod prints

frankfurt:/etc/modutils # lsmod
Module                  Size  Used by    Not tainted
snd-pcm-oss            36068   0  (autoclean) (unused)
snd-mixer-oss          10456   0  (autoclean) [snd-pcm-oss]
snd-seq-midi            3104   0  (autoclean) (unused)
snd-seq-oss            22336   0  (autoclean) (unused)
snd-seq-midi-event      2968   0  (autoclean) [snd-seq-midi snd-seq-oss]
snd-seq                36208   2  (autoclean) [snd-seq-midi snd-seq-oss
snd-seq-midi-event]
snd-cs46xx             54132   0  (autoclean) (unused)
snd-rawmidi            12128   0  (autoclean) [snd-seq-midi snd-cs46xx]
snd-seq-device          3724   0  (autoclean) [snd-seq-midi snd-seq-oss
snd-seq snd-rawmidi]
snd-pcm                54752   0  (autoclean) [snd-pcm-oss snd-cs46xx]
snd-timer              10120   0  (autoclean) [snd-seq snd-pcm]
snd-ac97-codec         24804   0  (autoclean) [snd-cs46xx]
snd                    24396   0  (autoclean) [snd-pcm-oss snd-mixer-oss
snd-seq-midi snd-seq-oss snd-seq-midi-event snd-seq snd-cs46xx snd-rawmidi
snd-seq-device snd-pcm snd-timer snd-ac97-codec]
soundcore               3524   7  (autoclean) [snd]
ide-cd                 28280   0  (autoclean)
cdrom                  28896   0  (autoclean) [ide-cd]
floppy                 45148   0  (autoclean)
serial                 42084   0  (autoclean)
3c575_cb               19940   2
cb_enabler              2512   2  [3c575_cb]
ds                      6600   2  [cb_enabler]
i82365                 22412   2
pcmcia_core            38016   0  [cb_enabler ds i82365]
input                   3328   0  (unused)
usb-uhci               20940   0  (unused)
usbcore                54848   1  [usb-uhci]
rtc                     5884   0  (autoclean)


I have the problem, that the interrupt that the soundcard uses is shared
with the pcmcia slot as well as the usb and networkcard.

Might that be the problem? And how do I assign a different IRQ to the
Soundchip?

frankfurt:/etc/modutils # cat /proc/interrupts
            CPU0
  0:     310195          XT-PIC  timer
  1:       8008          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  8:          3          XT-PIC  rtc
 11:       5175          XT-PIC  usb-uhci, i82365, eth0, CS46XX
 12:       2343          XT-PIC  PS/2 Mouse
 14:      12553          XT-PIC  ide0
 15:          9          XT-PIC  ide1
NMI:          0
ERR:          0

I also enclose the "alsa" file from /etc/modutils/

By the way, I don't need midi at all and would like my system not to load
the corresponding drivers.

Do I need the oss part at all, running KDE with arts ?

Thank you very much for any kind of help.

I do not subscribe this mailing list and would very much appeciate to
receive a carbon copy of any reply to my questions.

/etc/modutils/alsa
# Thomas Hood's sound driver configuration
# Nov 2002

alias /dev/sound     snd-card-0
alias sound          snd-card-0
alias char-major-116 snd
alias char-major-14  soundcore
alias sound-slot-0   snd-card-0
alias sound-slot-1   off
alias sound-slot-2   off
alias sound-slot-3   off

alias sound-service-0-0  snd-mixer-oss # /dev/mixer0
alias sound-service-0-1  snd-seq-oss    # /dev/sequencer
#alias sound-service-0-2  snd-card-0    # /dev/midi0
alias sound-service-0-3  snd-pcm-oss    # /dev/dsp0
alias sound-service-0-8  snd-seq-oss    # /dev/music
alias sound-service-0-12 snd-pcm-oss    # /dev/adsp0

alias snd-minor-oss-0    snd-card-0 # /dev/mixer0
alias snd-minor-oss-1    snd-card-0 # /dev/sequencer
alias snd-minor-oss-2    snd-card-0 # /dev/midi0
alias snd-minor-oss-3    snd-card-0 # /dev/dsp0
alias snd-minor-oss-4    snd-card-0 # /dev/audio

alias /dev/sequencer*    snd-card-0
alias /dev/music         snd-card-0
alias /dev/adsp*         snd-card-0
alias /dev/snd*          snd-card-0
alias /dev/sound         snd-card-0
alias /dev/audio         snd-card-0

below snd-pcm-oss        snd-card-0
below snd-seq-oss        snd-card-0
below snd-midi-oss       snd-card-0
below snd-mixer-oss      snd-card-0

alias snd-card-0 cs46xx
alias snd-card-0 snd-cs4236
alias snd-card-0 snd-cs46xx

above snd-cs4236 snd-mixer-oss snd-pcm-oss snd-seq-oss
above snd-cs46xx snd-mixer-oss snd-pcm-oss snd-seq-oss

options snd major=116 cards_limit=1 device_mode=0660 \
        device_gid=29 device_uid=0
         # gid 29 is the "audio" group

options snd-cs4236 index=0 id=CardZero enable=1 \
        cport=0x538 port=0x530 fm_port=0x388 sb_port=0x220 \
        irq=5 dma1=1 dma2=0
        # isapnp=0
        # mpu_port=0x330 mpu_irq=9
        # dma1_size=xxx dma2_size=xxx
        # There's also a game port at 0x200 which I don't use

options snd-cs46xx index=0 id=CardZero enable=1 \
        external_amp=1 thinkpad=1

#post-install snd-cs4236 /usr/sbin/alsactl restore
#post-install snd-cs46xx /usr/sbin/alsactl restore

#pre-remove snd-cs4236 /usr/sbin/alsactl store
#pre-remove snd-cs46xx /usr/sbin/alsactl store


- ----
- -      ,,,,,
- -      /'^'\                    Gruß, Phili
- -     ( o o )
- --oOOO--(_)--OOOo----------------------------------------------------
- -  .oooO               Philipp Drewes, http://phili.bonu.de
- -  (   )   Oooo.         phili@bonu.de, sillyphili@gmx.de
- ----\ (----(   )-----------------------------------------------------
- -    \_)    ) /
- -          (_/
- -

"The only Microsoft product ever to ship that doesn't suck will
probably be a vacuum cleaner!"
(unknown)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+G3PrWnqGsBHPYocRAvVYAKCBBedEoJrJJm2ZKBQ2bOih0RLvkgCeMbr9
8CyVRtebGlc4OX1s0Q8ixOE=
=x+1Z
-----END PGP SIGNATURE-----