Skip to contentSkip to conversation

Potential incorrect argument to snd_seq_port_info_set_ump_group in seqmid.c

DISCUSSION GitHub issues - opened 1 participant 1 message Feb 26, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-lib issue #440 was opened from reuk:

https://github.com/alsa-project/alsa-lib/blob/df8f1cc1ec9d9ee15be5e2c23ad25b9389fd8766/src/seq/seqmid.c#L585-L589

I think this call in seqmid.c is incorrect. According to the docs, the second argument to snd_seq_port_info_set_ump_group should be a 1-based group number (probably 0 for the UMP endpoint).

I'm testing on Fedora 41 with alsa-lib-devel 1.2.13-3.fc41, and I'm seeing the following printed to the console when I call snd_seq_create_ump_endpoint:

```
ALSA lib seqmid.c:592:(snd_seq_create_ump_endpoint) Failed to create MIDI 2.0 port
```

Issue URL : https://github.com/alsa-project/alsa-lib/issues/440
Repository URL: https://github.com/alsa-project/alsa-lib