[Asterisk-cvs] asterisk/channels chan_alsa.c,1.27.2.2,1.27.2.3

russell at lists.digium.com russell at lists.digium.com
Fri Apr 15 03:08:29 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21536/channels

Modified Files:
      Tag: v1-0
	chan_alsa.c 
Log Message:
fix unloading problems (bug #4019)


Index: chan_alsa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v
retrieving revision 1.27.2.2
retrieving revision 1.27.2.3
diff -u -d -r1.27.2.2 -r1.27.2.3
--- chan_alsa.c	1 Apr 2005 04:09:45 -0000	1.27.2.2
+++ chan_alsa.c	15 Apr 2005 07:59:59 -0000	1.27.2.3
@@ -1053,10 +1053,12 @@
 int unload_module()
 {
 	int x;
+	
+	ast_channel_unregister(type);
 	for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
 		ast_cli_unregister(myclis + x);
-	close(readdev);
-	close(writedev);
+	snd_pcm_close(alsa.icard);
+	snd_pcm_close(alsa.ocard);
 	if (sndcmd[0] > 0) {
 		close(sndcmd[0]);
 		close(sndcmd[1]);




More information about the svn-commits mailing list