Commit f7241589 authored by Takashi Iwai's avatar Takashi Iwai

Merge branch 'topic/midi20' into for-next

Pull yet more fixes for UMP core.
All about the legacy MIDI support code.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parents 0006fa2d 77700b81
......@@ -340,9 +340,6 @@ static int cvt_legacy_cmd_to_ump(struct snd_ump_endpoint *ump,
switch (status) {
case UMP_MSG_STATUS_NOTE_ON:
if (!buf[2])
status = UMP_MSG_STATUS_NOTE_OFF;
fallthrough;
case UMP_MSG_STATUS_NOTE_OFF:
midi2->note.note = buf[1];
midi2->note.velocity = upscale_7_to_16bit(buf[2]);
......@@ -457,7 +454,7 @@ static int do_convert_to_ump(struct snd_ump_endpoint *ump,
}
if (c & 0x80) {
bytes = cmd_bytes[(c >> 8) & 7];
bytes = cmd_bytes[(c >> 4) & 7];
cvt->buf[0] = c;
cvt->len = 1;
cvt->cmd_bytes = bytes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment