[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Modutils: sgalaxy: io, irq, dma and sgbase must be set.



I've a problem after the upgrade of the modutils package.
The system work correctly before this upgrade and the sound modules
were loaded on demand :-).
Now when the system try to load the sound modules appeare the following
message:

sgalaxy: io, irq, dma and sgbase must be set.

My system is a 486 100MHz with Potato:

ravel:~# uname -a
Linux ravel 2.2.13 #1 mar nov 2 15:17:57 CET 1999 i486 unknown
ravel:~# dpkg -l modutils
Desired=Unknown/Install/Remove/Purge
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  modutils        2.3.6-6        Linux module utilities.

The sound card is: 
Trust Sound Expert de Luxe Wave 32 3D
with the chipsets: CRYSTAL CS4231A-KL & YAMAHA OPL YMF262-M

I wrote a file that configure the sound cardmodules:

ravel:~# grep -v '^#' /etc/modutils/sound
alias char-major-14 sgalaxy
post-install sgalaxy /etc/init.d/gb-mixer start;/sbin/modprobe "-k"
"adlib_card";/sbin/modprobe "-k" "mpu401"
options sgalaxy -k io=0x604 sgbase=0x240 irq=10 dma=0 dma2=3
options adlib_card -k io=0x388
options opl3 -k
options mpu401 -k io=0x330 irq=9
options ad1848 -k
options softoss2 -k
options v_midi -k

But the system recognize the followings options:

ravel:~# modprobe -c
# Aliases
alias char-major-14 sgalaxy
# Options
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
options sgalaxy -k io=0x604 sgbase=0x240 irq=10 dma=0 dma2=3
options adlib_card -k io=0x388
options opl3 -k
options mpu401 -k io=0x330 irq=9
options ad1848 -k
options softoss2 -k
options v_midi -k
# Commands
post-install sgalaxy /etc/init.d/gb-mixer start;/sbin/modprobe "-k"
"adlib_card";/sbin/modprobe "-k" "mpu401"

Where does the sb options come from ? Is the sb line the problem ?
A workaround that I found is to manually load the modules with the
correct options at system startup with the following script:

#! /bin/sh
# /etc/init.d/gb-mixer: initialize mixer.
if ! cat /dev/sndstat >/dev/null 2>&1; then 
  echo -n "(GB@Nauta.it) Loading sound modules: adlib_card"
  modprobe adlib_card -k io=0x388
  echo " sgalaxy"
  modprobe sgalaxy -k io=0x604 sgbase=0x240 irq=10 dma=0
fi
test "`/bin/sed -ne "/^${TSTDEV}/,/^$/{
/[[:digit:]]/s/[^[:digit:]].*//p
}" ${SNDDEV}`" || exit 0
# MIXER INITALIZATION
...

Thank you for your attention.
                                          Guido.
-- 
+----------------+---------------------------------------+
| Guido Bozzetto | Office ph./fax:+39 0432 477588/548314 | L'avar al è
chel
|   \/     I     | E-mail:    :-)     mailto:GB@Nauta.it | che si
lambiche
|   OO     like  | Web:   http://www.nauta.it/~bozzetto/ | a vivi puar
|   --     Linux | Talk:                gb@argo.nauta.it | par muri sior
+----------------+---------------------------------------+


Reply to: