summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-06-12 10:10:49 +0200
committerTakashi Iwai <tiwai@suse.de>2023-06-12 18:22:29 +0200
commit5437ac9bad639bb9112e1a749acbe4a143562cdc (patch)
tree1e81649daf96580342a41ee264cad0f8613df918 /include/sound
parent960a1149c8fa70c221c70eaa13903ff873ba1873 (diff)
downloadlinux-5437ac9bad639bb9112e1a749acbe4a143562cdc.tar.gz
linux-5437ac9bad639bb9112e1a749acbe4a143562cdc.tar.bz2
linux-5437ac9bad639bb9112e1a749acbe4a143562cdc.zip
ALSA: seq: ump: Handle groupless messages
The UMP Utility and Stream messages are "groupless", i.e. an incoming groupless packet should be sent only to the UMP EP port, and the event with the groupless message is sent to UMP EP as is without the group translation per port. Also, the former reserved bit 0 for the client group filter is now used for groupless events. When the bit 0 is set, the groupless events are filtered out and skipped. Link: https://lore.kernel.org/r/20230612081054.17200-6-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/ump.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/ump.h b/include/sound/ump.h
index aef4748842d0..5b50a2fc0d79 100644
--- a/include/sound/ump.h
+++ b/include/sound/ump.h
@@ -255,4 +255,7 @@ static inline u32 ump_stream_compose(unsigned char status, unsigned short form)
((u32)status << 16);
}
+#define ump_is_groupless_msg(type) \
+ ((type) == UMP_MSG_TYPE_UTILITY || (type) == UMP_MSG_TYPE_STREAM)
+
#endif /* __SOUND_UMP_H */