Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: seq: Add UMP group number to snd_seq_port_info

Add yet more new filed "ump_group" to snd_seq_port_info for specifying
the associated UMP Group number for each sequencer port. This will be
referred in the upcoming automatic UMP conversion in sequencer core.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-30-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+11 -4
+2 -1
include/uapi/sound/asequencer.h
··· 478 478 unsigned int flags; /* misc. conditioning */ 479 479 unsigned char time_queue; /* queue # for timestamping */ 480 480 unsigned char direction; /* port usage direction (r/w/bidir) */ 481 - char reserved[58]; /* for future use */ 481 + unsigned char ump_group; /* 0 = UMP EP (no conversion), 1-16 = UMP group number */ 482 + char reserved[57]; /* for future use */ 482 483 }; 483 484 484 485
+7 -2
sound/core/seq/seq_ports.c
··· 356 356 port->time_real = (info->flags & SNDRV_SEQ_PORT_FLG_TIME_REAL) ? 1 : 0; 357 357 port->time_queue = info->time_queue; 358 358 359 - /* direction */ 359 + /* UMP direction and group */ 360 360 port->direction = info->direction; 361 + port->ump_group = info->ump_group; 362 + if (port->ump_group > SNDRV_UMP_MAX_GROUPS) 363 + port->ump_group = 0; 364 + 361 365 /* fill default port direction */ 362 366 if (!port->direction) { 363 367 if (info->capability & SNDRV_SEQ_PORT_CAP_READ) ··· 407 403 info->time_queue = port->time_queue; 408 404 } 409 405 410 - /* direction */ 406 + /* UMP direction and group */ 411 407 info->direction = port->direction; 408 + info->ump_group = port->ump_group; 412 409 413 410 return 0; 414 411 }
+2 -1
sound/core/seq/seq_ports.h
··· 72 72 int midi_voices; 73 73 int synth_voices; 74 74 75 - /* direction */ 75 + /* UMP direction and group */ 76 76 unsigned char direction; 77 + unsigned char ump_group; 77 78 }; 78 79 79 80 struct snd_seq_client;