seq: Fix typo of the group number in snd_seq_create_ump_endpoint()

The group number of UMP Endpoint client created by
snd_seq_create_ump_endpoint() is wrongly set due to a copy&paste
error.

Fixes: 6167b8ce3e ("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>
This commit is contained in:
Takashi Iwai 2025-03-01 11:00:15 +01:00
parent df8f1cc1ec
commit 0c7086777a

View 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");