summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-06-28 11:44:39 +0200
committerTakashi Iwai <tiwai@suse.de>2023-06-28 11:44:45 +0200
commit4926a34b1b4e568edcd47b7215718dc187147780 (patch)
treea501d4bdb366f47aaea1928859ea3c07fbeb23c0 /sound
parentALSA: fireface: make read-only const array for model names static (diff)
parentALSA: ump: Correct wrong byte size at converting a UMP System message (diff)
downloadlinux-4926a34b1b4e568edcd47b7215718dc187147780.tar.xz
linux-4926a34b1b4e568edcd47b7215718dc187147780.zip
Merge branch 'topic/midi20' into for-linus
Pull a typo fix in MIDI 2.0 helper code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/core/ump_convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/ump_convert.c b/sound/core/ump_convert.c
index fb61df424a87..de04799fdb69 100644
--- 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;