Takashi Iwai c2d188e137 ALSA: ump: Don't enumeration invalid groups for legacy rawmidi
The legacy rawmidi tries to enumerate all possible UMP groups
belonging to the UMP endpoint.  But currently it shows all 16 ports
when the UMP endpoint is configured with static blocks, although most
of them may be unused.

There was already a fix for the sequencer client side to ignore such
groups in the commit 3bfd7c0ba184 ("ALSA: seq: ump: Skip useless ports
for static blocks"), and this commit is a similar fix for UMP
rawmidi devices; it adds simply the check for the validity of each
group that has been already parsed.  (Note that the group info was
moved to snd_ump_endpoint.groups[] by the commit 0642a3c5cacc0321c755
("ALSA: ump: Update substream name from assigned FB names")).

Link: https://patch.msgid.link/20241104100735.16127-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-11-04 11:08:46 +01:00
..
2024-10-02 21:29:16 +02:00
2024-03-17 09:36:45 +01:00
2024-10-02 21:29:16 +02:00
2024-02-28 15:01:21 +01:00
2024-02-28 15:01:21 +01:00
2022-08-06 10:19:51 -07:00
2024-08-08 07:49:47 +02:00
2024-10-02 21:29:16 +02:00
2024-09-27 08:18:43 -07:00