Update of /cvsroot/alsa/alsa-kernel/core/seq
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31266/alsa-kernel/core/seq

Modified Files:
        seq_midi.c 
Log Message:
use wrapper function for DELETE_PORT ioctl calls

Index: seq_midi.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_midi.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- seq_midi.c  8 Mar 2004 09:15:38 -0000       1.17
+++ seq_midi.c  8 Mar 2004 09:18:29 -0000       1.18
@@ -257,17 +257,12 @@
 /* delete given midi synth port */
 static void snd_seq_midisynth_delete(seq_midisynth_t *msynth)
 {
-       snd_seq_port_info_t port;
-       
        if (msynth == NULL)
                return;
 
        if (msynth->seq_client > 0) {
                /* delete port */
-               memset(&port, 0, sizeof(port));
-               port.addr.client = msynth->seq_client;
-               port.addr.port = msynth->seq_port;
-               snd_seq_kernel_client_ctl(port.addr.client, 
SNDRV_SEQ_IOCTL_DELETE_PORT, &port);
+               snd_seq_event_port_detach(msynth->seq_client, msynth->seq_port);
        }
 
        if (msynth->parser)



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to