]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ALSA: seq: Add missing UMP EP cap bit at snd_seq_create_ump_endpoint()
authorTakashi Iwai <tiwai@suse.de>
Tue, 1 Apr 2025 05:59:40 +0000 (07:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 1 Apr 2025 06:10:27 +0000 (08:10 +0200)
In snd_seq_create_ump_endpoint(), it was forgotten to give the UMP
Endpoint capability bit (SND_SEQ_PORT_CAP_UMP_ENDPOINT) to the port 0
("UMP 2.0").  This resulted in port 0 being a normal port for the
non-existing group.

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

index 28c345de22169129041571d100e9c7142ed92fd8..154e6677342dc434314019a40524da1ee23a3031 100644 (file)
@@ -570,6 +570,7 @@ int snd_seq_create_ump_endpoint(snd_seq_t *seq,
        snd_seq_port_info_set_port_specified(pinfo, 1);
        snd_seq_port_info_set_name(pinfo, "MIDI 2.0");
        snd_seq_port_info_set_capability(pinfo,
+                                        SND_SEQ_PORT_CAP_UMP_ENDPOINT |
                                         SNDRV_SEQ_PORT_CAP_READ |
                                         SNDRV_SEQ_PORT_CAP_SYNC_READ |
                                         SNDRV_SEQ_PORT_CAP_SUBS_READ |