Unix Technical Forum

problems to detect a soundcard

This is a discussion on problems to detect a soundcard within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, I've a problem when my Slackware 9.1 tries to load the soundcard driver. It's a PC in dual-boot ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 10:45 AM
Gauthier Vandemoortele
 
Posts: n/a
Default problems to detect a soundcard

Hello,


I've a problem when my Slackware 9.1 tries to load the soundcard driver.
It's a PC in dual-boot with an old Mandrake, and with this one, the soundcard
worked (and works still...) well, so, I begin to give informations I get with
this distrib (I erase most of lines out of topic):

[gv@spirou gv]$ cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : soundblaster
02f8-02ff : serial(auto)
0340-035f : NE2000
0376-0376 : ide1
0378-037f : parport0
0388-038b : Yamaha OPL3
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0778-077a : parport0
9000-9007 : ide0
9008-900f : ide1
[gv@spirou gv]$ cat /proc/interrupts
CPU0
0: 51250 XT-PIC timer
1: 855 XT-PIC keyboard
2: 0 XT-PIC cascade
4: 6649 XT-PIC serial
7: 1 XT-PIC soundblaster
8: 1 XT-PIC rtc
11: 2199 XT-PIC NE2000
13: 1 XT-PIC fpu
14: 168145 XT-PIC ide0
15: 7 XT-PIC ide1
NMI: 0
[gv@spirou gv]$ cat /etc/conf.modules
alias sound sb
options -k sb io=0x220 irq=7 dma=1
alias midi opl3
options -k opl3 io=0x388
alias parport_lowlevel parport_pc
pre-install pcmcia_core /etc/rc.d/init.d/pcmcia start
alias eth0 ne
options ne io=0x340 irq=11
[gv@spirou gv]$ dmesg
Linux version 2.2.14-15mdk (root@kenobi.mandrakesoft.com) (gcc version 2.95.2 19991024 (release)) #1 Tue Jan 4 22:24:20 CET 2000
(...)
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
SB 3.01 detected OK (220)
ESS chip ES688 detected
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0x340: 00 c0 f0 24 95 90
eth0: NE2000 found at 0x340, using IRQ 11.
parport0: PC-style at 0x378 (0x778) [SPP,EPP,ECP,ECPEPP,ECPPS2]
parport0: no IEEE-1284 device present.
lp0: using parport0 (polling).

Now what I get with my Slackware :

[gv@spirou gv]$ cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0213-0213 : isapnp read
02f8-02ff : serial(auto)
0340-035f : eth0
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
9000-900f : Intel Corp. 82371SB PIIX3 IDE [Natoma/Triton II]
9000-9007 : ide0
9008-900f : ide1
[gv@spirou gv]$ cat /proc/interrupts
CPU0
0: 16812 XT-PIC timer
1: 367 XT-PIC keyboard
2: 0 XT-PIC cascade
4: 6 XT-PIC serial
8: 1 XT-PIC rtc
11: 3 XT-PIC NE2000
13: 0 XT-PIC fpu
14: 1831 XT-PIC ide0
15: 6 XT-PIC ide1
NMI: 0
ERR: 0
[gv@spirou gv]$ dmesg
Linux version 2.4.22 (root@midas) (gcc version 3.2.3) #6 Tue Sep 2 17:43:01 PDT 2003
(...)
isapnp: Scanning for PnP cards...
isapnp: Card 'ESS PnP AudioDrive'
isapnp: 1 Plug & Play card detected total
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x340: 00 c0 f0 24 95 90
eth0: NE2000 found at 0x340, using IRQ 11.
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
blk: queue c03a9d80, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03a9ebc, I/O limit 4095Mb (mask 0xffffffff)

So, I've used alsaconf to setup the soundcard, and this utility detects
a ES968 soundcard. I,'ve gone to the end of the process, and now, my
/etc/modules.conf is modified this way :


alias eth0 ne
options ne io=0x340 irq=11

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-es968
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd major=116 cards_limit=1
options snd-es968 index=0
# --- END: Generated by ALSACONF, do not edit. ---

But that doesn't work... I get no sound, aplay gives this sort of warning:

bash-2.05b# aplay test.wav
aplay: main:484: audio open error: No such device

And I find this warning with dmesg :

ALSA ../../alsa-kernel/isa/sb/es968.c:232: no ES968 based soundcards found

I've tried a lot of attempts, like adding parameters in modules.conf :

options snd-es968 index=0 port=0x220 irq=7 dma1

no change :-(

I've commented out all the alsa-relating lines in modules.conf, and
tried to use the old sb module, with the same parameters than with
the Mandrake :

bash-2.05b# modprobe -v sb io=0x220 irq=7 dma=1
Note: /etc/modules.conf is more recent than /lib/modules/2.4.22/modules.dep
/sbin/insmod /lib/modules/2.4.22/kernel/drivers/sound/sound.o.gz
Using /lib/modules/2.4.22/kernel/drivers/sound/sound.o.gz
Symbol version prefix ''
/sbin/insmod /lib/modules/2.4.22/kernel/drivers/sound/uart401.o.gz
Using /lib/modules/2.4.22/kernel/drivers/sound/uart401.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/drivers/sound/sb_lib.o.gz
Using /lib/modules/2.4.22/kernel/drivers/sound/sb_lib.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/drivers/sound/sb.o.gz io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
Using /lib/modules/2.4.22/kernel/drivers/sound/sb.o.gz
/lib/modules/2.4.22/kernel/drivers/sound/sb.o.gz: init_module: No such device
/lib/modules/2.4.22/kernel/drivers/sound/sb.o.gz: 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
/lib/modules/2.4.22/kernel/drivers/sound/sb.o.gz: insmod /lib/modules/2.4.22/kernel/drivers/sound/sb.o.gz failed
# delete sb_lib
# delete uart401
# delete sound

:-(

Because the kernel of the Mandrake found an ES688 card, I've changed the
modules.conf this way :

# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-es1688
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd major=116 cards_limit=1
options snd-es1688
# --- END: Generated by ALSACONF, do not edit. ---

And retry to load this module
bash-2.05b# modprobe -v snd-es1688
Note: /etc/modules.conf is more recent than /lib/modules/2.4.22/modules.dep
/sbin/insmod /lib/modules/2.4.22/kernel/sound/acore/seq/snd-seq-device.o.gz
Using /lib/modules/2.4.22/kernel/sound/acore/seq/snd-seq-device.o.gz
Symbol version prefix ''
/sbin/insmod /lib/modules/2.4.22/kernel/sound/acore/snd-rawmidi.o.gz
Using /lib/modules/2.4.22/kernel/sound/acore/snd-rawmidi.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/drivers/mpu401/snd-mpu401-uart.o.gz
Using /lib/modules/2.4.22/kernel/sound/drivers/mpu401/snd-mpu401-uart.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/acore/snd-timer.o.gz
Using /lib/modules/2.4.22/kernel/sound/acore/snd-timer.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/acore/snd-hwdep.o.gz
Using /lib/modules/2.4.22/kernel/sound/acore/snd-hwdep.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/drivers/opl3/snd-opl3-lib.o.gz
Using /lib/modules/2.4.22/kernel/sound/drivers/opl3/snd-opl3-lib.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/acore/snd-page-alloc.o.gz
Using /lib/modules/2.4.22/kernel/sound/acore/snd-page-alloc.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/acore/snd-pcm.o.gz
Using /lib/modules/2.4.22/kernel/sound/acore/snd-pcm.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688-lib.o.gz
Using /lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688-lib.o.gz
/sbin/insmod /lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz
Using /lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz
/lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz: init_module: No such device
/lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz: 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
/lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz: insmod /lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz failed
# delete snd-es1688-lib
# delete snd-pcm
# delete snd-page-alloc
# delete snd-opl3-lib
# delete snd-hwdep
# delete snd-timer
# delete snd-mpu401-uart
# delete snd-rawmidi
# delete snd-seq-device
/lib/modules/2.4.22/kernel/sound/isa/es1688/snd-es1688.o.gz: insmod snd-es1688 failed

And see this message with dmesg :
ESS AudioDrive ES1688 soundcard not found or device busy


So what...?

I wonder if the problem could'nt come from the irq 7, maybe shared by the
parport (see the message from the Slackware kernel at boot-time), but this
irq isn't displayed in /proc/interrupts.

Any suggestion ?

Thanks in advance,

--
^^
(_____/°°-ç Gauthier
| \_`-"
)/@mmm||
\nn \nn
FOE-Belgium : http://www.amisdelaterre.be
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 10:45 AM
/dev/rob0
 
Posts: n/a
Default Re: problems to detect a soundcard

On Sun, 18 Apr 2004 19:11:30 +0000, Gauthier Vandemoortele wrote:
> I've tried a lot of attempts, like adding parameters in modules.conf :


That is the thing to do. However, your changes are not being used:

> bash-2.05b# modprobe -v sb io=0x220 irq=7 dma=1 Note: /etc/modules.conf
> is more recent than /lib/modules/2.4.22/modules.dep /sbin/insmod

[snip]
> Any suggestion ?


Run "depmod -a" after any edit of modules.conf.

"cat /proc/isapnp", is the device activated? For that matter, is the
isapnp driver loading at all?
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com