LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2003, 05:34 AM   #1
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Rep: Reputation: 15
Unhappy ALSA installation


New to linux and have installed redhat 9.0 on my system. But I have problems with my soundcard ... and started to install Alsa

ww.alsa-project.org/alsa-doc/doc-php/template.php3?company=Creative+Labs&card=Soundblaster+Ensoniq+AudioPCI&chip=ES1373&module=ens1371

However when I try to add it to the kernel (chmod) it came with the following errors? (do have a Ensoniq ES1371 [AudioPCI-97] (rev 8) installed!)

[root@i231170 alsa]# modprobe snd-ens1371;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
/lib/modules/2.4.20-19.9/kernel/sound/pci/snd-ens1371.o: init_module: No such device
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.20-19.9/kernel/sound/pci/snd-ens1371.o: insmod /lib/modules/2.4.20-19.9/kernel/sound/pci/snd-ens1371.o failed
/lib/modules/2.4.20-19.9/kernel/sound/pci/snd-ens1371.o: insmod snd-ens1371 failed
[root@i231170 alsa]#

Does anybody know what I do wrong?

Thanks
Jamie
 
Old 08-13-2003, 06:06 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Welcome to LQ

It's not complaining that the hardware isn't there, but rather the driver itself. How did the install go? Did it complete without errors? Did you compile for your correct sound-card (as was shown in the how to you referred to above)?

Are you running that kernel?
uname -r

Did you compile your drivers against a different kernel? Do you have soundcore loaded as module (required for ALSA, but also should have been in that how-to)?

Cool
 
Old 08-13-2003, 03:02 PM   #3
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
I actually ran everything according to the description given at ALSA. Using the right kernel ...

Found that the modprobe command worked only after a reboot or in a different su shell. So that issue is solved .....

But how can you see that you are running with the new drivers? (because I still have problems)

Cheers,
Jamie
 
Old 08-14-2003, 01:05 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
lsmod (LSMOD lowercase)

As root, this will lost all loaded modules, including the ones that should be loaded from installing ALSA.

Cool
 
Old 08-15-2003, 03:26 AM   #5
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
Hej Cool,

lsmod gives me a list - but cannot find specific ALSA driver (I think?? - see below)

Cheers
Jamie

[root@i231170 root]# lsmod
Module Size Used by Not tainted
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 0 (autoclean) (unused)
e100 54564 1
8139too 18120 1
mii 3976 0 [8139too]
ipt_REJECT 3992 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107544 3 [sg sr_mod ide-scsi]
ide-cd 35712 0
cdrom 33728 0 [sr_mod ide-cd]
keybdev 2976 0 (unused)
mousedev 5556 1
hid 22244 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26412 0 (unused)
ehci-hcd 20072 0 (unused)
usbcore 79040 1 [hid usb-uhci ehci-hcd]
ext3 70784 2
jbd 51924 2 [ext3]
 
Old 08-15-2003, 04:06 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Yeah, they aren't getting loaded. Follow the directions again in your sound card's page at alsa's website and be sure to place the info in /etc/modules.conf If you have already, feel free to post up the contents of that file:
less /etc/modules.conf

Cool
 
Old 08-15-2003, 04:10 AM   #7
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
This is the content of my etc/modules.conf file .... thought that I followed the instructions at ALSA

Jamie

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias eth0 8139too
alias eth1 e100
alias usb-controller ehci-hcd
alias usb-controller1 usb-uhci
options torisa base=0xd0000
alias char-major-196 torisa
post-install tor2 /sbin/ztcfg
post-install wcfxo /sbin/ztcfg
post-install wct1xxp /sbin/ztcfg
post-install wct4xxp /sbin/ztcfg


# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-ens1371
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
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
 
Old 08-15-2003, 04:14 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
When you run depmod -ae and then:
lsmod
Do these modules then show up?

Cool
 
Old 08-15-2003, 04:17 AM   #9
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
No they do not show up .... annoying!

[root@i231170 root]# depmod -ae
[root@i231170 root]# lsmod
Module Size Used by Not tainted
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 0 (autoclean) (unused)
e100 54564 1
8139too 18120 1
mii 3976 0 [8139too]
ipt_REJECT 3992 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107544 3 [sg sr_mod ide-scsi]
ide-cd 35712 0
cdrom 33728 0 [sr_mod ide-cd]
keybdev 2976 0 (unused)
mousedev 5556 1
hid 22244 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26412 0 (unused)
ehci-hcd 20072 0 (unused)
usbcore 79040 1 [hid usb-uhci ehci-hcd]
ext3 70784 2
jbd 51924 2 [ext3]
[root@i231170 root]#
 
Old 08-15-2003, 04:21 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
That's really wierd... Checkout man modules.conf to see if it has any ideas for you.

Just to recap:
You can modprobe up all the modules, and sound works. But upon reboot, if you attempt to access a sound device, nothing works, and then upon further inspection, the modules are still not loaded (from modules.conf)?

I'll look around a bit to see if I can dig up any info...

Cool
 
Old 08-15-2003, 04:27 AM   #11
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
OK thanks - will check all that stuff ... see if I come up with something (keep u posted)
 
Old 08-19-2003, 05:29 AM   #12
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
Hi Cool,

Used modprobe -v snd-ens1371 and got the ALSA drivers loaded - however now I have got all the snd-ac97 as well (this is a Intel PNP card in my PC)

Do you know where this is loaded and how I can get rid of it?

Thanks
Jamie

lsmod output now

[root@i231170 root]# lsmod
Module Size Used by Not tainted
snd-pcm-oss 45284 0 (autoclean)
snd-mixer-oss 16408 0 (autoclean) [snd-pcm-oss]
snd-ens1371 17068 0 (autoclean)
snd-pcm 85280 0 (autoclean) [snd-pcm-oss snd-ens1371]
snd-page-alloc 9844 0 (autoclean) [snd-pcm]
snd-timer 19556 0 (autoclean) [snd-pcm]
snd-ac97-codec 50200 0 (autoclean) [snd-ens1371]
gameport 3364 0 (autoclean) [snd-ens1371]
snd-rawmidi 18560 0 (autoclean) [snd-ens1371]
snd-seq-device 6204 0 (autoclean) [snd-rawmidi]
snd 43076 0 (autoclean) [snd-pcm-oss snd-mixer-oss snd-ens1371 snd-pcm snd-timer snd-ac97-codec snd-rawmidi snd-seq-device]
soundcore 6404 6 (autoclean) [snd]
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 0 (autoclean) (unused)
e100 54564 1
8139too 18120 1
mii 3976 0 [8139too]
ipt_REJECT 3992 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107544 3 [sg sr_mod ide-scsi]
ide-cd 35712 0
cdrom 33728 0 [sr_mod ide-cd]
printer 8928 0
keybdev 2976 0 (unused)
mousedev 5556 1
hid 22244 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26412 0 (unused)
ehci-hcd 20072 0 (unused)
usbcore 79040 1 [printer hid usb-uhci ehci-hcd]
ext3 70784 2
jbd 51924 2 [ext3]
 
Old 08-19-2003, 08:40 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Ahh, no you are good. No need to remove anything there, it should all be inter-twined

However, should you really wanna remove a module at any point, the command:
rmmod
Is what you are looking for. You'll need to remove dependencies first, so for example, if you want to remove ext3, you'll first have to remove jbd

Cool
 
Old 08-19-2003, 11:42 AM   #14
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Rep: Reputation: 15
Hi Beuzekom,

You also have to add the two following lines to your modules.conf if your mixer settings aren't getting saved.

Add these:
post-install snd-card-0 /usr/sbin/alsactl restore >/dev/null 2>&1 || :
pre-remove snd-card-0 /usr/sbin/alsactl store >/dev/null 2>&1 || :

Cheers,
Alf829

Last edited by Alf829; 08-19-2003 at 11:45 AM.
 
Old 08-19-2003, 03:47 PM   #15
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
Alf - the modules conf file already had it in (duno who did it :-))

Cool - what if I want to force the modules to be deleted ... getting the message that the device is busy ? (see below)

Thanks for all your time ... feel like we are getting somewhere (alreay got some sound :-))

[root@i231170 etc]# lsmod
Module Size Used by Not tainted
es1371 30824 0 (autoclean)
snd-pcm-oss 45284 0 (autoclean) (unused)
snd-pcm 85280 0 (autoclean) [snd-pcm-oss]
snd-page-alloc 9844 0 (autoclean) [snd-pcm]
snd-timer 19556 0 (autoclean) [snd-pcm]
snd-mixer-oss 16408 0 (autoclean) [snd-pcm-oss]
snd 43076 0 (autoclean) [snd-pcm-oss snd-pcm snd-timer snd-mixer-oss]
gameport 3364 0 (autoclean) [es1371]
ac97_codec 14568 0 (autoclean) [es1371]
soundcore 6404 4 (autoclean) [es1371 snd]
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 0 (autoclean) (unused)
e100 54564 1
8139too 18120 1
mii 3976 0 [8139too]
ipt_REJECT 3992 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107544 3 [sg sr_mod ide-scsi]
ide-cd 35712 0
cdrom 33728 0 [sr_mod ide-cd]
printer 8928 0
keybdev 2976 0 (unused)
mousedev 5556 1
hid 22244 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26412 0 (unused)
ehci-hcd 20072 0 (unused)
usbcore 79040 1 [printer hid usb-uhci ehci-hcd]
ext3 70784 2
jbd 51924 2 [ext3]
[root@i231170 etc]# rmmod ac97_codec
ac97_codec: Device or resource busy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA installation on RHE3 WS gsgerard Red Hat 1 07-21-2005 04:10 PM
another alsa installation problem tnielsen Linux - Software 1 08-17-2004 08:37 PM
ALSA installation Starr Linux - Software 14 07-01-2004 08:10 PM
ALSA installation - i810_audio robertmarkbram Linux - Software 6 06-15-2003 05:36 PM
Alsa Installation Tips VIP3R Linux - Software 6 03-23-2003 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration