LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2003, 03:16 PM   #1
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Rep: Reputation: 30
howto pass parameters to modules


Hi,

i think this is a silly question for your gurus...
i have problems configuring my soundcard

it appears as follows in my /etc/modules.conf

options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666
options snd-ali5451 snd_index=0

modprobe failes as follows:

sparc:~ # modprobe snd-ali5451
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: insmod /lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o failed
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: insmod snd-ali5451 failed
sparc:~ #

how am i able to pass irq etc to this module???

sparc:~ # lspci -tv
-[00]-+-00.0 ATI Technologies Inc: Unknown device cab0
+-01.0-[01]----05.0 ATI Technologies Inc: Unknown device 4336
+-02.0 Acer Laboratories Inc. [ALi] M5237 USB
+-03.0 Acer Laboratories Inc. [ALi]: Unknown device 5457
+-04.0 Acer Laboratories Inc. [ALi] M5229 IDE
+-06.0 Acer Laboratories Inc. [ALi] M7101 PMU
+-07.0 Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV]
+-08.0 Acer Laboratories Inc. [ALi] M5451 PCI South Bridge Audio
+-09.0 Realtek Semiconductor Co., Ltd. RTL-8139
+-0a.0 VIA Technologies, Inc. OHCI Compliant IEEE 1394 Host Controller
+-0b.0 ENE Technology Inc: Unknown device 1420
+-0b.1 ENE Technology Inc: Unknown device 1420
\-0f.0 Acer Laboratories Inc. [ALi] M5237 USB
sparc:~ #

alsaconf recognizes it as the right card...

i have serched the support database sdb.suse.de and there i was told to update alsa. i did so to the newest release, but it hasn't solved the problem...

Hope someone can help me out....

Best regards

sam

Last edited by Sammy2ooo; 06-30-2003 at 03:19 PM.
 
Old 06-30-2003, 06:33 PM   #2
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
modprobe should be reading the config file in when you invoke it. modprobe -c will confirm what file is used.
 
Old 07-01-2003, 04:35 AM   #3
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Original Poster
Rep: Reputation: 30
Hi

this is what modprobe -c returned. I am sorry but i really don't know where to find the config file which is invoked by modprobe...

Quote:
Note: /etc/modules.conf is more recent than /lib/modules/2.4.18-4GB/modules.dep
# Generated by modprobe -c (2.4.12)
path[boot]=/lib/modules/boot
path[toplevel]=/lib/modules/2.4.18-4GB
path[toplevel]=/lib/modules/2.4
path[kernel]=/lib/modules/kernel
path[fs]=/lib/modules/fs
path[net]=/lib/modules/net
path[scsi]=/lib/modules/scsi
path[block]=/lib/modules/block
path[cdrom]=/lib/modules/cdrom
path[ipv4]=/lib/modules/ipv4
path[ipv6]=/lib/modules/ipv6
path[sound]=/lib/modules/sound
path[fc4]=/lib/modules/fc4
path[video]=/lib/modules/video
path[misc]=/lib/modules/misc
path[pcmcia]=/lib/modules/pcmcia
path[atm]=/lib/modules/atm
path[usb]=/lib/modules/usb
path[ide]=/lib/modules/ide
path[ieee1394]=/lib/modules/ieee1394
path[mtd]=/lib/modules/mtd
# Prune
prune modules.dep
prune modules.generic_string
prune modules.pcimap
prune modules.isapnpmap
prune modules.usbmap
prune modules.parportmap
prune modules.ieee1394map
prune modules.pnpbiosmap
prune System.map
prune .config
prune build
prune vmlinux
prune vmlinuz
prune bzImage
prune zImage
prune .rhkmvtag
# Aliases
alias binfmt-0000 off
alias binfmt-204 binfmt_aout
alias binfmt-263 binfmt_aout
alias binfmt-264 binfmt_aout
alias binfmt-267 binfmt_aout
alias binfmt-387 binfmt_aout
alias binfmt-332 abi-ibcs
alias binfmt--310 binfmt_java
alias block-major-1 rd
alias block-major-2 floppy
alias block-major-3 off
alias block-major-7 loop
alias block-major-8 sd_mod
alias block-major-9 md
alias block-major-11 sr_mod
alias block-major-13 xd
alias block-major-15 cdu31a
alias block-major-16 gscd
alias block-major-17 optcd
alias block-major-18 sjcd
alias block-major-20 mcdx
alias block-major-22 off
alias block-major-23 mcd
alias block-major-24 sonycd535
alias block-major-25 sbpcd
alias block-major-26 sbpcd
alias block-major-27 sbpcd
alias block-major-29 aztcd
alias block-major-32 cm206
alias block-major-33 off
alias block-major-34 off
alias block-major-37 ide-tape
alias block-major-44 ftl
alias block-major-46 pcd
alias block-major-47 pf
alias block-major-56 off
alias block-major-57 off
alias block-major-58 lvm-mod
alias block-major-88 ide-probe-mod
alias block-major-89 ide-probe-mod
alias block-major-90 ide-probe-mod
alias block-major-91 ide-probe-mod
alias block-major-93 nftl
alias block-major-97 pg
alias char-major-4 serial
alias char-major-5 serial
alias char-major-6 lp
alias char-major-9 st
alias char-major-10 off
alias char-major-10-0 busmouse
alias char-major-10-1 off
alias char-major-10-2 msbusmouse
alias char-major-10-3 atixlmouse
alias char-major-10-130 softdog
alias char-major-10-131 wdt
alias char-major-10-135 off
alias char-major-10-139 openprom
alias char-major-10-144 nvram
alias char-major-10-157 applicom
alias char-major-10-175 agpgart
alias char-major-10-184 microcode
alias char-major-14 soundcore
alias char-major-19 cyclades
alias char-major-20 cyclades
alias char-major-21 sg
alias char-major-22 pcxx
alias char-major-23 pcxx
alias char-major-27 ftape
alias char-major-34 scc
alias char-major-35 tclmidi
alias char-major-36 netlink_dev
alias char-major-37 ide-tape
alias char-major-48 riscom8
alias char-major-49 riscom8
alias char-major-57 esp
alias char-major-58 esp
alias char-major-63 kdebug
alias char-major-90 mtdchar
alias char-major-96 pt
alias char-major-99 ppdev
alias char-major-107 3dfx
alias char-major-108 ppp_generic
alias char-major-109 lvm-mod
alias char-major-161 ircomm-tty
alias char-major-206 osst
alias dos msdos
alias dummy0 dummy
alias dummy1 dummy
alias eth0 8139too
alias iso9660 isofs
alias md-personality-1 linear
alias md-personality-2 raid0
alias md-personality-3 raid1
alias md-personality-4 raid5
alias net-pf-1 unix
alias net-pf-2 ipv4
alias net-pf-3 ax25
alias net-pf-4 ipx
alias net-pf-5 appletalk
alias net-pf-6 netrom
alias net-pf-10 ipv6
alias net-pf-17 af_packet
alias net-pf-19 off
alias netalias-2 ip_alias
alias plip0 plip
alias plip1 plip
alias tunl0 ipip
alias cipcb0 cipcb
alias cipcb1 cipcb
alias cipcb2 cipcb
alias cipcb3 cipcb
alias ppp0 ppp_generic
alias ppp1 ppp_generic
alias scsi_hostadapter off
alias slip0 slip
alias slip1 slip
alias tty-ldisc-1 slip
alias tty-ldisc-3 ppp_async
alias tty-ldisc-11 irtty
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
alias parport_lowlevel parport_pc
alias usbdevfs usbcore
alias eth1 off
alias tr0 off
alias fb0 off
alias block-major-48 off
alias block-major-49 off
alias block-major-72 off
alias block-major-73 off
alias sound off
alias midi off
alias block-major-28 sbpcd
alias block-major-43 off
alias block-major-45 pd
alias char-major-10-181 toshiba
alias char-major-10-240 agpgarti810
alias char-major-10-250 sonypi
alias char-major-15 off
alias char-major-29 off
alias char-major-43 off
alias char-major-44 off
alias char-major-45 off
alias char-major-67 coda
alias char-major-75 specialix
alias char-major-76 specialix
alias char-major-81 bttv
alias char-major-83 vtx
alias char-major-89 i2c-dev
alias char-major-97 pg
alias char-major-144 pppoe
alias net-pf-24 pppoe
alias char-major-166 acm
alias char-major-172 moxa
alias char-major-173 moxa
alias char-major-174 mxser
alias char-major-175 mxser
alias InterMezzo intermezzo
alias char-major-185 intermezzo
alias char-major-195 NVdriver
alias char-major-240 usb-serial
alias binfmt-0064 binfmt_aout
alias binfmt-0008 binfmt_aout
alias tty-ldisc-5 mkiss
alias tty-ldisc-7 off
alias ax0 off
alias sp0 off
alias sl0 slip
alias sl1 slip
alias ppp-compress-18 ppp_mppe
alias net-pf-11 rose
alias tap0 ethertap
alias tap1 ethertap
alias tap2 ethertap
alias tap3 ethertap
alias tap4 ethertap
alias tap5 ethertap
alias tap6 ethertap
alias tap7 ethertap
alias tap8 ethertap
alias tap9 ethertap
alias tap10 ethertap
alias tap11 ethertap
alias tap12 ethertap
alias tap13 ethertap
alias tap14 ethertap
alias tap15 ethertap
alias char-major-10-219 mwave
alias char-major-10-170 thinkpad
alias char-major-30 abi-ibcs
alias binfmt-0004 binfmt_coff
alias binfmt-518 abi-ibcs
alias binfmt-002c abi-ibcs
alias personality-1 abi-ibcs
alias personality-2 abi-ibcs
alias personality-3 abi-sco
alias personality-4 abi-wyse
alias personality-5 abi-ibcs
alias personality-7 abi-ibcs
alias personality-13 abi-solaris
alias personality-14 abi-uw7
alias char-major-116 snd
alias snd-card-0 snd-ali5451
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
options dummy0 -o dummy0
options dummy1 -o dummy1
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
options cipcb cipe_debug=0
options sonypi minor=250
options vtx quiet=1
options isa-pnp isapnp_reset=0
options agpgart agp_try_unsupported=1
options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666
options snd-ali5451 snd_index=0
# Commands
pre-install mga /sbin/modprobe "-k" "agpgart"
pre-install r128 /sbin/modprobe "-k" "agpgart"
pre-install radeon /sbin/modprobe "-k" "agpgart"
post-install binfmt_misc mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
pre-remove binfmt_misc umount /proc/sys/fs/binfmt_misc
# Miscellaneous file and directory names
generic_stringfile=/lib/modules/2.4.18-4GB/modules.generic_string
pcimapfile=/lib/modules/2.4.18-4GB/modules.pcimap
isapnpmapfile=/lib/modules/2.4.18-4GB/modules.isapnpmap
usbmapfile=/lib/modules/2.4.18-4GB/modules.usbmap
parportmapfile=/lib/modules/2.4.18-4GB/modules.parportmap
ieee1394mapfile=/lib/modules/2.4.18-4GB/modules.ieee1394map
pnpbiosmapfile=/lib/modules/2.4.18-4GB/modules.pnpbiosmap
depfile=/lib/modules/2.4.18-4GB/modules.dep
persistdir=/var/lib/modules/persist
this is what insmod snd-ali5451 returns...

Quote:
sparc:~ # insmod snd-ali5451
Using /lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_new
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_verbose_printk
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol _snd_magic_kcalloc
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_format_width
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_set_sync
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_lib_free_pages
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_hidden_kmalloc
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_ctl_add
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_device_new
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_lib_malloc_pages
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_period_elapsed
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_magic_kfree
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_format_unsigned
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_hidden_kfree
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_hw_constraint_minmax
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_set_ops
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_ac97_mixer
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_lib_ioctl
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_card_register
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_wrapper_kfree
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_ctl_new1
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_ac97_resume
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_pcm_lib_preallocate_pci_pages_for_all
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_card_free
/lib/modules/2.4.18-4GB/kernel/sound/pci/ali5451/snd-ali5451.o: unresolved symbol snd_card_new
sparc:~ #
i just can't figure out what i'm doing wrong or misunderstanding...

Any hints on this??

Best Regards

Sam
 
Old 07-01-2003, 10:38 AM   #4
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
do you have the soundcore module loaded? modprobe should take care of it, but when using insmod it wont be loaded automatically (and would explain the unresolved symbols) I believe modprobe should be reading from /etc/modules.conf, but you can specify what file to use by passing the -C argument
 
Old 07-01-2003, 12:41 PM   #5
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Original Poster
Rep: Reputation: 30
yes, the soundcore module is loaded.... at alsa-project.org i have found a driver especially for this soundcard... but i am not able to compile this module into the kernel.... so what ever, i had a look at the new kernel 2.4.21 which includes an even newer driver than the one offered by http://www.ali.com.tw/ so know i am getting stuck while compiling the new kernel because of the many options and features which want to be configured, and i dont know for what they are goot!!! man i tell my brain hearts !!!

Maybee you know a goot kernel howto especially for newest kernel version 2.4.21???

ThX in advance

Greets Sam
 
Old 07-01-2003, 09:30 PM   #6
solspin
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97

Rep: Reputation: 15
I tried the ALSA driver and it did not work. Followed the "manual" and everything checked out fine, but still no sound. It is not necessary to find a kernel with your specific sound driver patched in. Sound drivers should be loaded as modules anyway. My solution? I purchased the sound driver for my card from 4Front Technologies. Yes, yes. I know what your saying, "but it's supposed to be free!" Well, take it from me. If you want to try to follow poorly documented instructions on configuring ALSA, or any other sound driver from the source, go for it. Rest assured, you will be on your own and will most likely solve the problem by chance. I did a search for sound problems on linuxquestions.org and found little help in trying to resolve sound issues. That is NOT to put down the helpful input from other users of this site, but is just to show what kind of help is provided by the Linux community. An "experienced" Linux user would say to RTFM, but guess what? I DID read the manual, just as you did!! Well, I guess us "Newbies" really don't know how to read poorly documented instructions written by a two year old.
 
  


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
passing parameters to network modules muru Linux - Networking 4 10-21-2005 11:44 AM
How to pass on boot parameters Slack 10.1 tdking19 Slackware 3 03-21-2005 11:41 AM
Pass Parameters to php from bash iman00b Linux - Newbie 2 09-09-2004 06:30 PM
how do I pass special parameters to the kernel at startup? Falafel Fedora 4 01-19-2004 07:49 PM
pass parameters to shell scripts ? qwijibow Linux - Newbie 2 08-07-2003 08:27 AM


All times are GMT -5. The time now is 02:54 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