ALSA: seq: Avoid delivery of events for disabled UMP groups
authorTakashi Iwai <tiwai@suse.de>
Tue, 12 Sep 2023 08:51:44 +0000 (10:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Sep 2023 08:52:28 +0000 (10:52 +0200)
commit22eefaeab03fe968ab7786fb3d5c5abd203a8bab
tree74d0436137049cc96b45ef06afa98fcd6d7608d7
parent60edec9beffebd01a49c005221230f3a61fe6587
ALSA: seq: Avoid delivery of events for disabled UMP groups

ALSA sequencer core still delivers events to the disabled UMP Group,
leaving this handling to the device.  But it's rather risky and it's
easy to imagine that such an unexpected event may screw up the device
firmware.

This patch avoids the superfluous event deliveries by setting the
group_filter of the UMP client as default, and evaluate the
group_filter properly at delivery from non-UMP clients.

The grouop_filter is updated upon the dynamic UMP Function Block
updates, so that it follows the change of the disabled UMP Groups,
too.

Fixes: d2b706077792 ("ALSA: seq: Add UMP group filter")
Link: https://lore.kernel.org/r/20230912085144.32534-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_ump_client.c
sound/core/seq/seq_ump_convert.c