]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: seq: Fix delivery of UMP events to group ports
authorTakashi Iwai <tiwai@suse.de>
Sun, 11 May 2025 13:45:27 +0000 (15:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 11 May 2025 13:58:06 +0000 (15:58 +0200)
commitff7b190aef6cccdb6f14d20c5753081fe6420e0b
treeee710b9547555291ef1d615f4cc697e48fc80845
parent6e5bea1c93062a43bc0435ae6cd589448094edaa
ALSA: seq: Fix delivery of UMP events to group ports

When an event with UMP message is sent to a UMP client, the EP port
receives always no matter where the event is sent to, as it's a
catch-all port.  OTOH, if an event is sent to EP port, and if the
event has a certain UMP Group, it should have been delivered to the
associated UMP Group port, too, but this was ignored, so far.

This patch addresses the behavior.  Now a UMP event sent to the
Endpoint port will be delivered to the subscribers of the UMP group
port the event is associated with.

The patch also does a bit of refactoring to simplify the code about
__deliver_to_subscribers().

Fixes: 177ccf811df4 ("ALSA: seq: Support MIDI 2.0 UMP Endpoint port")
Link: https://patch.msgid.link/20250511134528.6314-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_ump_convert.c
sound/core/seq/seq_ump_convert.h