Commit c97f3dd85490e51ba48782dd0c063cdade352c0d
Committed by
Jaroslav Kysela
1 parent
f4a747f155
Exists in
master
and in
20 other branches
[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>
Showing 3 changed files with 3 additions and 5 deletions Side-by-side Diff
sound/drivers/opl3/opl3_oss.c
... | ... | @@ -99,8 +99,7 @@ |
99 | 99 | opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks, |
100 | 100 | SNDRV_SEQ_PORT_CAP_WRITE, |
101 | 101 | 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, | |
104 | 103 | voices, voices, |
105 | 104 | name); |
106 | 105 | if (opl3->oss_chset->port < 0) { |
sound/drivers/opl3/opl3_seq.c
sound/synth/emux/emux_seq.c
... | ... | @@ -54,8 +54,7 @@ |
54 | 54 | #define DEFAULT_MIDI_TYPE (SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |\ |
55 | 55 | SNDRV_SEQ_PORT_TYPE_MIDI_GM |\ |
56 | 56 | 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) | |
59 | 58 | |
60 | 59 | /* |
61 | 60 | * Initialise the EMUX Synth by creating a client and registering |