[ALSA] fix port type bits
authorClemens Ladisch <clemens@ladisch.de>
Tue, 2 May 2006 13:50:05 +0000 (15:50 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 22 Jun 2006 19:33:17 +0000 (21:33 +0200)
Fix the port information about non-MIDI messages that had wrong values
for some OPL3 and EmuX ports.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/drivers/opl3/opl3_oss.c
sound/drivers/opl3/opl3_seq.c
sound/synth/emux/emux_seq.c

index fccf019a6d85968a5ff8f26953d0f9dba655d654..d48f8dee2d98d9daac501d0c215c06ef048e55bc 100644 (file)
@@ -99,8 +99,7 @@ static int snd_opl3_oss_create_port(struct snd_opl3 * opl3)
        opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks,
                                                          SNDRV_SEQ_PORT_CAP_WRITE,
                                                          SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
-                                                         SNDRV_SEQ_PORT_TYPE_MIDI_GM |
-                                                         SNDRV_SEQ_PORT_TYPE_SYNTH,
+                                                         SNDRV_SEQ_PORT_TYPE_MIDI_GM,
                                                          voices, voices,
                                                          name);
        if (opl3->oss_chset->port < 0) {
index 57becf34f43efa83949ef5171d6e8853a515cc70..2aece1b18660b85f864a7d58d68c26dfd8d45318 100644 (file)
@@ -203,7 +203,7 @@ static int snd_opl3_synth_create_port(struct snd_opl3 * opl3)
                                                      SNDRV_SEQ_PORT_CAP_SUBS_WRITE,
                                                      SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
                                                      SNDRV_SEQ_PORT_TYPE_MIDI_GM |
-                                                     SNDRV_SEQ_PORT_TYPE_SYNTH,
+                                                     SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE,
                                                      16, voices,
                                                      name);
        if (opl3->chset->port < 0) {
index 8f00f07701c460437d848996dea949e89cb254e8..58838f7c95f05e2afb73a390aded0b3c3f019d41 100644 (file)
@@ -54,8 +54,7 @@ static struct snd_midi_op emux_ops = {
 #define DEFAULT_MIDI_TYPE      (SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |\
                                 SNDRV_SEQ_PORT_TYPE_MIDI_GM |\
                                 SNDRV_SEQ_PORT_TYPE_MIDI_GS |\
-                                SNDRV_SEQ_PORT_TYPE_MIDI_XG |\
-                                SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE)
+                                SNDRV_SEQ_PORT_TYPE_MIDI_XG)
 
 /*
  * Initialise the EMUX Synth by creating a client and registering