aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq/seq_dummy.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2006-05-02 16:08:41 +0200
committerJaroslav Kysela <perex@suse.cz>2006-06-22 21:33:18 +0200
commit450047a78f3c35a905576e121abfbee2ccd45993 (patch)
tree7788c29141fc1dac2c0cb5f2b4799b7c9231c361 /sound/core/seq/seq_dummy.c
parent[ALSA] fix port type bits (diff)
downloadlinux-dev-450047a78f3c35a905576e121abfbee2ccd45993.tar.xz
linux-dev-450047a78f3c35a905576e121abfbee2ccd45993.zip
[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>
Diffstat (limited to 'sound/core/seq/seq_dummy.c')
-rw-r--r--sound/core/seq/seq_dummy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/core/seq/seq_dummy.c b/sound/core/seq/seq_dummy.c
index 2a283a59ea4d..9eb1c744f77b 100644
--- a/sound/core/seq/seq_dummy.c
+++ b/sound/core/seq/seq_dummy.c
@@ -171,7 +171,9 @@ create_port(int idx, int type)
pinfo.capability |= SNDRV_SEQ_PORT_CAP_WRITE | SNDRV_SEQ_PORT_CAP_SUBS_WRITE;
if (duplex)
pinfo.capability |= SNDRV_SEQ_PORT_CAP_DUPLEX;
- pinfo.type = SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC;
+ pinfo.type = SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC
+ | SNDRV_SEQ_PORT_TYPE_SOFTWARE
+ | SNDRV_SEQ_PORT_TYPE_PORT;
memset(&pcb, 0, sizeof(pcb));
pcb.owner = THIS_MODULE;
pcb.unuse = dummy_unuse;