ALSA: seq: Add UMP group filter
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:57 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:38 +0000 (12:11 +0200)
commitd2b706077792a366fac8c1db2f1b4406ad7da482
treea8b3a7e0a521b51d67a5f1d650d0007b4c545082
parente85b9260569dc3893bc084ec18ef48e199525ef8
ALSA: seq: Add UMP group filter

Add a new filter bitmap for UMP groups for reducing the unnecessary
read/write when the client is connected to UMP EP seq port.

The new group_filter field contains the bitmap for the groups, i.e.
when the bit is set, the corresponding group is filtered out and
the messages to that group won't be delivered.

The filter bitmap consists of each bit of 1-based UMP Group number.
The bit 0 is reserved for the future use.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-37-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/asequencer.h
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_clientmgr.h
sound/core/seq/seq_ump_convert.c