]> git.alsa-project.org Git - alsa-lib.git/commitdiff
seq: Fix typo of the group number in snd_seq_create_ump_endpoint()
authorTakashi Iwai <tiwai@suse.de>
Sat, 1 Mar 2025 10:00:15 +0000 (11:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 1 Mar 2025 10:00:15 +0000 (11:00 +0100)
The group number of UMP Endpoint client created by
snd_seq_create_ump_endpoint() is wrongly set due to a copy&paste
error.

Fixes: 6167b8ce3e80 ("seq: Add API helper functions for creating UMP Endpoint and Blocks")
Closes: https://github.com/alsa-project/alsa-lib/issues/440
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/seq/seqmid.c

index 17733ca6a348a6e381fc1d2236512788e0b668d7..28c345de22169129041571d100e9c7142ed92fd8 100644 (file)
@@ -582,11 +582,7 @@ int snd_seq_create_ump_endpoint(snd_seq_t *seq,
                                   SNDRV_SEQ_PORT_TYPE_MIDI_UMP |
                                   SND_SEQ_PORT_TYPE_APPLICATION |
                                   SNDRV_SEQ_PORT_TYPE_PORT);
-       snd_seq_port_info_set_ump_group(pinfo,
-                                       SND_SEQ_PORT_TYPE_MIDI_GENERIC |
-                                  SNDRV_SEQ_PORT_TYPE_MIDI_UMP |
-                                  SND_SEQ_PORT_TYPE_APPLICATION |
-                                  SNDRV_SEQ_PORT_TYPE_PORT);
+       snd_seq_port_info_set_ump_group(pinfo, 0);
        err = snd_seq_create_port(seq, pinfo);
        if (err < 0) {
                SNDERR("Failed to create MIDI 2.0 port\n");