]> git.alsa-project.org Git - alsa-lib.git/commit
seq: Add API helper functions for creating UMP Endpoint and Blocks
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Jun 2024 12:35:36 +0000 (14:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Jun 2024 15:12:24 +0000 (17:12 +0200)
commit6167b8ce3e8098f3c7a0b0be7ad4b9f7e003bfc4
treefa29bd1919a32df5492f189829aafb5d8e4bd8fb
parent6767f623ca057e277b5478e20cdb8497dcf4c753
seq: Add API helper functions for creating UMP Endpoint and Blocks

For making it easer for applications to create a virtual UMP Endpoint
and UMP blocks, add two API helper functions.

snd_seq_create_ump_endpoint() creates (unsurprisingly) a UMP Endpoint,
based on the given snd_ump_endpoint_info_t information.  The number of
(max) UMP groups belonging to this Endpoint has to be specified.
This function sets up the Endpoint info on the sequencer client, and
creates a MIDI 2.0 UMP port as well as UMP Group ports automatically.
The name of the sequencer client is updated from the Endpoint name,
too.

After creating a UMP Endpoint, create each UMP Block via
snd_seq_create_ump_block() function with a snd_ump_block_info_t info.
The associated groups for each block have to be specified there.
The port names and capability bits are updated accordingly after
setting each block information.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/seqmid.h
include/ump.h
src/seq/seq.c
src/seq/seq_local.h
src/seq/seqmid.c