Re: ALSA sound modules not loading

1999-10-19 Thread flonesaw
Marshal,

There is a Seg fault problem with the ALSA drivers.

I have a Creative Ensoniq PCI64 (ens1371) soundcard and the ALSA
drivers do the same thing to me.  This is on a S.u.S.E. system with
kernel 2.2.5.

What I do is to put the modprobe command in a script in my /root/bin
directory and run it manually until the driver catches and doesn't
segfault.  Then, everything works fine.

Since I almost never reboot my machine, this works well for me.

I have reported this to the ALSA people.  They responded that it was a
S.u.S.E. problem.  Apparently it isn't.  I would recommend you go to
the ALSA site and report it yourself.

Regards,

Arne

 I'm using the latest potato right now.  The ALSA source compiled fine.
 I used make-kpkg to install the modules.  But for some reason the
 module won't start.  Every time I run /etc/init.d/alsa start, I get
 the following.
 
 Starting sound driver: snd-card-interwave /etc/init.d/alsa: line 10:  7070 
 Segmentation fault  /sbin/modprobe $line /dev/nul
l 21
 failed.
 
 To get this, I had to edit the file /etc/init.d/alsa to awk
 /etc/modules.conf as opposed to conf.modules, since the new potato has
 finally removed the old style conf.modules.  
 
 a lsmod right after gives:
 Module  Size  Used by
 snd-cs4231 16876   0  (unused)
 snd-mixer  24768   0  [snd-cs4231]
 snd-pcm1   16604   0  [snd-cs4231]
 snd-timer   7772   0  [snd-cs4231 snd-pcm1]
 snd-midi   12524   0  (unused)
 snd-pcm 8844   0  [snd-cs4231 snd-pcm1]
 snd33612   0  [snd-cs4231 snd-mixer snd-pcm1 snd-timer 
 snd-midi snd-pcm]
 soundcore   2340   0  [snd]
 ppp20012   0  (unused)
 slhc4280   0  [ppp]
 ne2k-pci4040   1 
 83906068   0  [ne2k-pci]
 parport_pc  5700   1  (autoclean)
 lp  5092   0 
 parport 7048   1  [parport_pc lp]
 vfat8956   0  (unused)
 fat28768   0  [vfat]
 
 I can manually modprobe snd-card-interwave and it gives me no error,
 so I have no idea what's going on.  
 
 Any help would be appreciated.  Thanks.
 
 Marshal
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: ALSA sound modules not loading

1999-10-19 Thread Brad
-BEGIN PGP SIGNED MESSAGE-

On Mon, 18 Oct 1999, Marshal Wong wrote:

 I'm using the latest potato right now.  The ALSA source compiled fine.
 I used make-kpkg to install the modules.  But for some reason the
 module won't start.  Every time I run /etc/init.d/alsa start, I get
 the following.
 
 Starting sound driver: snd-card-interwave /etc/init.d/alsa: line 10:  7070 
 Segmentation fault  /sbin/modprobe $line /dev/null 21
 failed.

i can get this too, but only if ALSA's isapnp module is already loaded
when i do the modprobe. If i rmmod that isapnp module before
i /etc/init.d/alsa start, it all loads fine. Also, if i do the modprobe a
second time (after the segfault) it all works fine.

A patch is attached that'll remove the isapnp module on /etc/init.d/alsa
stop. As root, cd to /etc/init.d and cat patch | patch -p1.

 To get this, I had to edit the file /etc/init.d/alsa to awk
 /etc/modules.conf as opposed to conf.modules, since the new potato has
 finally removed the old style conf.modules.  

Yeah, i noticed that too. Looks like someone already filed the bug report
though.


- -- 
  finger for PGP public key.

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOAvmdr7M/9WKZLW5AQG2jwQAhgaeYEe/guVEz96bZ/953r8r7z58HLDY
CVBWApt2rsSL68Vz5AQ3zzYZBqGExKre6D/qDAhicGk+uSlCFWDBY74vB9IdEAiP
ZP2WdWg7xnn10zSKxJ8mtLarmHFg/hLF4fmvlSQ/BziE5w3M6T9GQ/ezy0W8PWpq
0KEv0JUBdzE=
=7cem
-END PGP SIGNATURE-
diff -u old/alsa new/alsa
--- old/alsaMon Oct 18 22:24:10 1999
+++ new/alsaMon Oct 18 22:25:03 1999
@@ -37,8 +37,8 @@
   #
   # Note: configuration actually lives in /etc/modutils/alsa,
   # however, since modprobe knows nothing about that, we use
-  # /etc/conf.modules instead.
-awk '/^alias +snd-card-[0-9]/ {print $3}' /etc/conf.modules | \
+  # /etc/modules.conf instead.
+awk '/^alias +snd-card-[0-9]/ {print $3}' /etc/modules.conf | \
 while read line; do
   echo -n Starting sound driver: $line 
   if /sbin/modprobe $line /dev/null 21; then
@@ -64,6 +64,8 @@
   /sbin/lsmod | grep -E ^snd | while read line; do \
  /sbin/rmmod `echo $line | cut -d ' ' -f 1` /dev/null 21 || true; \
   done
+  # Remove the isapnp module, if possible
+  /sbin/rmmod isapnp /dev/null 21 || true
   # remove the 2.2 soundcore module (if possible)
   /sbin/rmmod soundcore /dev/null 21 || true
 }