Skip to content

Commit 4eecae4

Browse files
committed
ALSA: ump: Correct wrong byte size at converting a UMP System message
A wrong size for UMP_SYSTEM_STATUS_MIDI_TIME_CODE and case UMP_SYSTEM_STATUS_SONG_SELECT was reported at converting to the legacy MIDI 1.0 stream. This patch corrects the value. Fixes: 0b5288f ("ALSA: ump: Add legacy raw MIDI support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 33cd763 commit 4eecae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/ump_convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static int cvt_ump_system_to_legacy(u32 data, unsigned char *buf)
7373
case UMP_SYSTEM_STATUS_MIDI_TIME_CODE:
7474
case UMP_SYSTEM_STATUS_SONG_SELECT:
7575
buf[1] = (data >> 8) & 0x7f;
76-
return 1;
76+
return 2;
7777
case UMP_SYSTEM_STATUS_SONG_POSITION:
7878
buf[1] = (data >> 8) & 0x7f;
7979
buf[2] = data & 0x7f;

0 commit comments

Comments
 (0)