]> git.alsa-project.org Git - alsa-lib.git/commit
seq: Clear UMP event flag for legacy apps
authorTakashi Iwai <tiwai@suse.de>
Mon, 6 Nov 2023 15:27:11 +0000 (16:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Nov 2023 11:16:47 +0000 (12:16 +0100)
commit2fca03e792ef1b740e8a7370fdd360d0b627c84c
treec82fcbd455f53d7dcf60e822ae445f0f5d4f9110
parentf202ec3c23abf16a2382acc0de35900173e32160
seq: Clear UMP event flag for legacy apps

It seems that some applications (at least Chrome WebMIDI) set random
bits to the flags of event packet, and this confuses as if they were
UMP-events, which are eventually filtered out.

Although it's a bug of applications, it's better to avoid the
regressions.  So this patch forcibly clears the UMP flag of the
incoming and outgoing events when the application is running in the
legacy mode (i.e. midi_version = 0).

Fixes: 2aefb5c41cc0 ("seq: Add UMP support")
Closes: https://github.com/alsa-project/alsa-lib/issues/360
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/seq/seq.c