]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: seq: Fix UMP group 16 filtering
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Wed, 6 May 2026 03:15:48 +0000 (00:15 -0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 May 2026 07:56:54 +0000 (09:56 +0200)
commit92429ca999db99febced82f23362a71b2ba4c1d8
tree93e8a64e7d4c0db104f0c796aec0cd07160789bd
parent320e55722ca466a7d40dd69e1aea982cb6189006
ALSA: seq: Fix UMP group 16 filtering

The sequencer UAPI defines group_filter as an unsigned int bitmap.
Bit 0 filters groupless messages and bits 1-16 filter UMP groups 1-16.

The internal snd_seq_client storage is only unsigned short, so bit 16
is truncated when userspace sets the filter. The same truncation affects
the automatic UMP client filter used to avoid delivery to inactive
groups, so events for group 16 cannot be filtered.

Store the internal bitmap as unsigned int and keep both userspace-provided
and automatically generated values limited to the defined UAPI bits.

Fixes: d2b706077792 ("ALSA: seq: Add UMP group filter")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260506-alsa-seq-ump-group16-filter-v1-1-b75160bf6993@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_clientmgr.h
sound/core/seq/seq_ump_client.c