mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-08 10:25:20 +02:00
ALSA: seq: Skip event type filtering for UMP events
commit32108c22ac
upstream. UMP events don't use the event type field, hence it's invalid to apply the filter, which may drop the events unexpectedly. Skip the event filtering for UMP events, instead. Fixes:46397622a3
("ALSA: seq: Add UMP support") Cc: <stable@vger.kernel.org> Link: https://patch.msgid.link/20240819084156.10286-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c77dee530e
commit
b1922c3102
|
@ -537,6 +537,9 @@ static struct snd_seq_client *get_event_dest_client(struct snd_seq_event *event,
|
||||||
return NULL;
|
return NULL;
|
||||||
if (! dest->accept_input)
|
if (! dest->accept_input)
|
||||||
goto __not_avail;
|
goto __not_avail;
|
||||||
|
if (snd_seq_ev_is_ump(event))
|
||||||
|
return dest; /* ok - no filter checks */
|
||||||
|
|
||||||
if ((dest->filter & SNDRV_SEQ_FILTER_USE_EVENT) &&
|
if ((dest->filter & SNDRV_SEQ_FILTER_USE_EVENT) &&
|
||||||
! test_bit(event->type, dest->event_filter))
|
! test_bit(event->type, dest->event_filter))
|
||||||
goto __not_avail;
|
goto __not_avail;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user