Skip to contentSkip to conversation

GUS module usage count

PATCH New Ville Syrjälä 1 participant 1 message May 10, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 GUS module usage count

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;
}

Signature · 8 lines
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]