Skip to content

Commit c97f3dd

Browse files
cladischJaroslav Kysela
authored andcommitted
[ALSA] fix port type bits
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>
1 parent f4a747f commit c97f3dd

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎sound/drivers/opl3/opl3_oss.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ static int snd_opl3_oss_create_port(struct snd_opl3 * opl3)
9999
opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks,
100100
SNDRV_SEQ_PORT_CAP_WRITE,
101101
SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
102-
SNDRV_SEQ_PORT_TYPE_MIDI_GM |
103-
SNDRV_SEQ_PORT_TYPE_SYNTH,
102+
SNDRV_SEQ_PORT_TYPE_MIDI_GM,
104103
voices, voices,
105104
name);
106105
if (opl3->oss_chset->port < 0) {

‎sound/drivers/opl3/opl3_seq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static int snd_opl3_synth_create_port(struct snd_opl3 * opl3)
203203
SNDRV_SEQ_PORT_CAP_SUBS_WRITE,
204204
SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
205205
SNDRV_SEQ_PORT_TYPE_MIDI_GM |
206-
SNDRV_SEQ_PORT_TYPE_SYNTH,
206+
SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE,
207207
16, voices,
208208
name);
209209
if (opl3->chset->port < 0) {

‎sound/synth/emux/emux_seq.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ static struct snd_midi_op emux_ops = {
5454
#define DEFAULT_MIDI_TYPE (SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |\
5555
SNDRV_SEQ_PORT_TYPE_MIDI_GM |\
5656
SNDRV_SEQ_PORT_TYPE_MIDI_GS |\
57-
SNDRV_SEQ_PORT_TYPE_MIDI_XG |\
58-
SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE)
57+
SNDRV_SEQ_PORT_TYPE_MIDI_XG)
5958

6059
/*
6160
* Initialise the EMUX Synth by creating a client and registering

0 commit comments

Comments
 (0)