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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-13-2003, 04:34 AM
|
#1
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Rep:
|
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
|
|
|
08-13-2003, 05:06 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-13-2003, 02:02 PM
|
#3
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
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
|
|
|
08-14-2003, 12:05 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
lsmod (LSMOD lowercase)
As root, this will lost all loaded modules, including the ones that should be loaded from installing ALSA.
Cool
|
|
|
08-15-2003, 02:26 AM
|
#5
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
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]
|
|
|
08-15-2003, 03:06 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-15-2003, 03:10 AM
|
#7
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
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
|
|
|
08-15-2003, 03:14 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
When you run depmod -ae and then:
lsmod
Do these modules then show up?
Cool
|
|
|
08-15-2003, 03:17 AM
|
#9
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
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]#
|
|
|
08-15-2003, 03:21 AM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-15-2003, 03:27 AM
|
#11
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
OK thanks - will check all that stuff ... see if I come up with something (keep u posted)
|
|
|
08-19-2003, 04:29 AM
|
#12
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
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]
|
|
|
08-19-2003, 07:40 AM
|
#13
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-19-2003, 10:42 AM
|
#14
|
Member
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110
Rep:
|
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 10:45 AM.
|
|
|
08-19-2003, 02:47 PM
|
#15
|
Member
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|