I was unable to unload some of the gus modules. Here's my fix. I hope it's
correct.

Index: alsa-kernel/isa/gus/gus_synth.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gus_synth.c,v
retrieving revision 1.5
diff -u -r1.5 gus_synth.c
--- alsa-kernel/isa/gus/gus_synth.c     14 Feb 2002 17:40:32 -0000
1.5
+++ alsa-kernel/isa/gus/gus_synth.c     10 May 2002 01:20:40 -0000
@@ -66,6 +66,7 @@
                voice = snd_gf1_alloc_voice(gus,
SNDRV_GF1_VOICE_TYPE_SYNTH, info->sender.client, info->sender.port);
                if (voice == NULL) {
                        snd_gus_synth_free_voices(gus,
info->sender.client, info->sender.port);
+                       snd_gus_use_dec(gus);
                        up(&gus->register_mutex);
                        return -EBUSY;
                }
@@ -82,6 +83,7 @@
 
        down(&gus->register_mutex);
        snd_gus_synth_free_voices(gus, info->sender.client,
info->sender.port);
+       snd_gus_use_dec(gus);
        up(&gus->register_mutex);
        return 0;
 }

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to