projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33cd763
)
ALSA: ump: Correct wrong byte size at converting a UMP System message
author
Takashi Iwai
<tiwai@suse.de>
Wed, 28 Jun 2023 09:43:52 +0000
(11:43 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 28 Jun 2023 09:44:30 +0000
(11:44 +0200)
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:
0b5288f5fe63
("ALSA: ump: Add legacy raw MIDI support")
Link:
https://lore.kernel.org/r/20230628094352.15754-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump_convert.c
patch
|
blob
|
history
diff --git
a/sound/core/ump_convert.c
b/sound/core/ump_convert.c
index
fb61df4
..
de04799
100644
(file)
--- a/
sound/core/ump_convert.c
+++ b/
sound/core/ump_convert.c
@@
-73,7
+73,7
@@
static int cvt_ump_system_to_legacy(u32 data, unsigned char *buf)
case UMP_SYSTEM_STATUS_MIDI_TIME_CODE:
case UMP_SYSTEM_STATUS_SONG_SELECT:
buf[1] = (data >> 8) & 0x7f;
- return
1
;
+ return
2
;
case UMP_SYSTEM_STATUS_SONG_POSITION:
buf[1] = (data >> 8) & 0x7f;
buf[2] = data & 0x7f;