* [PATCH] GUS module usage count
@ 2002-05-10 1:25 Ville Syrjälä
0 siblings, 0 replies; only message in thread
From: Ville Syrjälä @ 2002-05-10 1:25 UTC (permalink / raw)
To: alsa-devel; +Cc: perex
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ä
syrjala@sci.fi
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: bandwidth@sourceforge.net
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-10 1:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-10 1:25 [PATCH] GUS module usage count Ville Syrjälä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox