mirror-linux/sound/core/seq
Takashi Iwai e77aa4b2ea ALSA: seq: Drop UMP events when no UMP-conversion is set
When a destination client is a user client in the legacy MIDI mode and
it sets the no-UMP-conversion flag, currently the all UMP events are
still passed as-is.  But this may confuse the user-space, because the
event packet size is different from the legacy mode.

Since we cannot handle UMP events in user clients unless it's running
in the UMP client mode, we should filter out those events instead of
accepting blindly.  This patch addresses it by slightly adjusting the
conditions for UMP event handling at the event delivery time.

Fixes: 329ffe11a0 ("ALSA: seq: Allow suppressing UMP conversions")
Link: https://lore.kernel.org/b77a2cd6-7b59-4eb0-a8db-22d507d3af5f@gmail.com
Link: https://patch.msgid.link/20250217170034.21930-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2025-02-17 18:02:02 +01:00
..
oss ALSA: seq: oss: Simplify with str_enabled_disabled() 2025-01-07 17:35:25 +01:00
Kconfig ALSA: seq: Make dependency on UMP clearer 2025-01-01 13:56:48 +01:00
Makefile ALSA: core: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:32 +02:00
seq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_clientmgr.c ALSA: seq: Drop UMP events when no UMP-conversion is set 2025-02-17 18:02:02 +01:00
seq_clientmgr.h ALSA: seq: Add UMP group filter 2023-05-23 12:11:38 +02:00
seq_compat.c ALSA: seq: core: Use automatic cleanup of kfree() 2024-02-23 10:57:31 +01:00
seq_dummy.c ALSA: seq: dummy: Allow UMP conversion 2024-04-19 12:11:47 +02:00
seq_fifo.c ALSA: seq: fifo: Use guard() for locking 2024-02-28 15:01:21 +01:00
seq_fifo.h ALSA: seq: Fix potential concurrent access to the deleted pool 2019-08-25 09:31:10 +02:00
seq_info.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_info.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_lock.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_lock.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
seq_memory.c ALSA: seq: memory: Use guard() for locking 2024-02-28 15:01:21 +01:00
seq_memory.h ALSA: seq: Add UMP support 2023-05-23 12:11:21 +02:00
seq_midi.c ALSA: seq: midi: Use guard() for locking 2024-02-28 15:01:22 +01:00
seq_midi_emul.c ALSA: Use fallthrough pseudo-keyword 2020-07-09 13:01:29 +02:00
seq_midi_event.c ALSA: seq: midi: Use guard() for locking 2024-02-28 15:01:22 +01:00
seq_ports.c ALSA: seq: Fix missing seq port info bit return for MIDI 1.0 block 2024-08-07 11:31:38 +02:00
seq_ports.h Merge branch 'topic/control-lookup-rwlock' into for-next 2024-08-09 14:25:24 +02:00
seq_prioq.c ALSA: seq: prioq: Use guard() for locking 2024-02-28 15:01:22 +01:00
seq_prioq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_queue.c ALSA: seq: Add tempo base unit for MIDI2 Set Tempo messages 2024-07-06 09:38:27 +02:00
seq_queue.h ALSA: seq: Remove unused declarations 2024-08-17 16:32:31 +02:00
seq_system.c ALSA: seq: Allow system notification in atomic 2025-01-12 13:12:21 +01:00
seq_system.h ALSA: seq: Notify UMP EP and FB changes 2025-01-12 13:12:21 +01:00
seq_timer.c ALSA: seq: Add tempo base unit for MIDI2 Set Tempo messages 2024-07-06 09:38:27 +02:00
seq_timer.h ALSA: seq: Remove unused declarations 2024-08-17 16:32:31 +02:00
seq_ump_client.c ALSA: seq: Notify UMP EP and FB changes 2025-01-12 13:12:21 +01:00
seq_ump_convert.c Merge branch 'topic/control-lookup-rwlock' into for-next 2024-08-09 14:25:24 +02:00
seq_ump_convert.h ALSA: seq: Automatic conversion of UMP events 2023-05-23 12:11:28 +02:00
seq_virmidi.c ALSA: seq: virmidi: Use guard() for locking 2024-02-28 15:01:22 +01:00