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: ump: Force 1 Group for MIDI1 FBs

When a Function Block declares it being a legacy MIDI1 device, it has
to be only with a single UMP Group. Correct the attribute when a
device declares it wrongly.

Fixes: 37e0e14128e0 ("ALSA: ump: Support UMP Endpoint and Function Block parsing")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20240722140610.10845-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+6
+6
sound/core/ump.c
··· 733 733 info->block_id, info->direction, info->active, 734 734 info->first_group, info->num_groups, info->midi_ci_version, 735 735 info->sysex8_streams, info->flags); 736 + 737 + if ((info->flags & SNDRV_UMP_BLOCK_IS_MIDI1) && info->num_groups != 1) { 738 + info->num_groups = 1; 739 + ump_dbg(ump, "FB %d: corrected groups to 1 for MIDI1\n", 740 + info->block_id); 741 + } 736 742 } 737 743 738 744 /* check whether the FB info gets updated by the current message */