]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: seq: Register kernel port with full information
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 May 2026 09:42:52 +0000 (11:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 May 2026 05:47:33 +0000 (07:47 +0200)
commit2ee646353cd5fadc42b002e54ed7e4fc19676689
treee1318d5909a6b74bdec0ca5c314056634dd09990
parent160781cda19b7831b54d7af2f05af1a8fee091c2
ALSA: seq: Register kernel port with full information

The current ALSA sequencer core tries to register the new kernel
sequencer port on the list at first, then fill up the port
information.  This means that user-space may sneak the wrong
information before the actual data is filled, which isn't ideal.
Although the user-space should try to query the port info after the
port registration notification is sent out, it'd be still better to
have a port available with the full info from the beginning.

This patch changes the sequencer port creation and registration
procedure; now split to two steps, for creation and insertion, and the
port is registered after the information is filled.

Link: https://sashiko.dev/#/patchset/20260518194023.1667857-1-maoyixie.tju%40gmail.com
Link: https://patch.msgid.link/20260519094254.465041-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_ports.c
sound/core/seq/seq_ports.h