From: "Ville Syrjälä" <syrjala@sci.fi>
To: alsa-devel@lists.sourceforge.net
Cc: perex@suse.cz
Subject: [PATCH] GUS module usage count
Date: Fri, 10 May 2002 04:25:02 +0300 [thread overview]
Message-ID: <20020510042502.B8147@sci.fi> (raw)
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
reply other threads:[~2002-05-10 1:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020510042502.B8147@sci.fi \
--to=syrjala@sci.fi \
--cc=alsa-devel@lists.sourceforge.net \
--cc=perex@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox