[ALSA] add more sequencer port type information bits
Add four new information flags SNDRV_SEQ_PORT_TYPE_HARDWARE, _SOFTWARE, _SYNTHESIZER, _PORT for sequencer ports. This makes it easier for apps like Rosegarden to make policy decisions based on the port type. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
committed by
Jaroslav Kysela
parent
c97f3dd854
commit
450047a78f
@@ -164,7 +164,9 @@ static int snd_opl4_seq_new_device(struct snd_seq_device *dev)
|
||||
SNDRV_SEQ_PORT_CAP_WRITE |
|
||||
SNDRV_SEQ_PORT_CAP_SUBS_WRITE,
|
||||
SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
|
||||
SNDRV_SEQ_PORT_TYPE_MIDI_GM,
|
||||
SNDRV_SEQ_PORT_TYPE_MIDI_GM |
|
||||
SNDRV_SEQ_PORT_TYPE_HARDWARE |
|
||||
SNDRV_SEQ_PORT_TYPE_SYNTHESIZER,
|
||||
16, 24,
|
||||
"OPL4 Wavetable Port");
|
||||
if (opl4->chset->port < 0) {
|
||||
|
||||
Reference in New Issue
Block a user