Update of /cvsroot/alsa/alsa-kernel/drivers/opl3
In directory sc8-pr-cvs1:/tmp/cvs-serv16406/drivers/opl3

Modified Files:
        opl3_oss.c opl3_seq.c 
Log Message:
set the valid midi_voices field of sequencer port info.



Index: opl3_oss.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/opl3/opl3_oss.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- opl3_oss.c  5 Feb 2003 11:07:52 -0000       1.9
+++ opl3_oss.c  28 Feb 2003 15:08:22 -0000      1.10
@@ -101,7 +101,7 @@
                                                          
SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
                                                          SNDRV_SEQ_PORT_TYPE_MIDI_GM |
                                                          SNDRV_SEQ_PORT_TYPE_SYNTH,
-                                                         voices,
+                                                         voices, voices,
                                                          name);
        if (opl3->oss_chset->port < 0) {
                snd_midi_channel_free_set(opl3->oss_chset);

Index: opl3_seq.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/opl3/opl3_seq.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- opl3_seq.c  5 Feb 2003 11:07:52 -0000       1.10
+++ opl3_seq.c  28 Feb 2003 15:08:23 -0000      1.11
@@ -179,8 +179,10 @@
 {
        snd_seq_port_callback_t callbacks;
        char name[32];
-       int opl_ver;
+       int voices, opl_ver;
 
+       voices = (opl3->hardware < OPL3_HW_OPL3) ?
+               MAX_OPL2_VOICES : MAX_OPL3_VOICES;
        opl3->chset = snd_midi_channel_alloc_set(16);
        if (opl3->chset == NULL)
                return -ENOMEM;
@@ -204,7 +206,7 @@
                                                      SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC 
|
                                                      SNDRV_SEQ_PORT_TYPE_MIDI_GM |
                                                      SNDRV_SEQ_PORT_TYPE_SYNTH,
-                                                     16,
+                                                     16, voices,
                                                      name);
        if (opl3->chset->port < 0) {
                snd_midi_channel_free_set(opl3->chset);



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to