Skip to content

Commit

Permalink
[ALSA] fix port type bits
Browse files Browse the repository at this point in the history
Fix the port information about non-MIDI messages that had wrong values
for some OPL3 and EmuX ports.

Signed-off-by: Clemens Ladisch <[email protected]>
  • Loading branch information
cladisch authored and Jaroslav Kysela committed Jun 22, 2006
1 parent f4a747f commit c97f3dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions sound/drivers/opl3/opl3_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion sound/drivers/opl3/opl3_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions sound/synth/emux/emux_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c97f3dd

Please sign in to comment.