Takashi Iwai 5692e90af3 ALSA: seq: ump: Optimize conversions from SysEx to UMP
commit 952b13c215234855d75ef4b5bb0138075e73677c upstream.

The current conversion from the legacy SysEx event to UMP SysEx packet
in the sequencer core has a couple of issues:

* The first packet trims the SysEx start byte (0xf0), hence it
  contains only 5 bytes instead of 6.  This isn't wrong, per
  specification, but it's strange not to fill 6 bytes.

* When the SysEx end marker (0xf7) is placed at the first byte of the
  next packet, it'll end up with an empty data just with the END
  status.  It can be rather folded into the previous packet with the
  END status.

This patch tries to address those issues.  The first packet may have 6
bytes even with the SysEx start, and an empty packet with the SysEx
end marker is omitted.

Fixes: e9e02819a98a ("ALSA: seq: Automatic conversion of UMP events")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20240726143455.3254-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-11 12:57:58 +02:00
..
2024-03-17 09:36:45 +01:00
2024-05-22 10:49:54 -07:00
2024-02-28 15:01:21 +01:00
2024-02-28 15:01:21 +01:00
2022-08-06 10:19:51 -07:00
2022-07-29 12:57:10 +02:00
2024-02-28 15:01:22 +01:00
2024-02-28 15:01:21 +01:00
2024-08-03 09:00:42 +02:00