]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: seq: Notify UMP EP and FB changes
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Jan 2025 15:59:41 +0000 (16:59 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 12 Jan 2025 12:12:21 +0000 (13:12 +0100)
commit3ab4a3199c782eae9b683b952f3ec5a766e4a096
tree7eb8cbe8823a64a5d4ee4de4d745f8d0e01e51ca
parent10a29de13bbc7ca92ae85184cf2f966c4ce3b69b
ALSA: seq: Notify UMP EP and FB changes

So far we notify the sequencer client and port changes upon UMP FB
changes, but those aren't really corresponding to the UMP updates.
e.g. when a FB info gets updated, it's not notified but done only when
some of sequencer port attribute is changed.  This is no ideal
behavior.

This patch adds the two new sequencer event types for notifying the
UMP EP and FB changes via the announce port.  The new event takes
snd_seq_ev_ump_notify type data, which is compatible with
snd_seq_addr (where the port number is replaced with the block
number).

The events are sent when the EP and FB info gets updated explicitly
via ioctl, or the backend UMP receives the corresponding UMP
messages.

The sequencer protocol version is bumped to 1.0.5 along with it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250110155943.31578-9-tiwai@suse.de
Documentation/sound/designs/midi-2.0.rst
include/sound/ump.h
include/uapi/sound/asequencer.h
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_system.h
sound/core/seq/seq_ump_client.c
sound/core/ump.c