ALSA: seq: Fix yet another spot for system message conversion
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 May 2024 10:10:43 +0000 (12:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 May 2024 10:11:20 +0000 (12:11 +0200)
We fixed the incorrect UMP type for system messages in the recent
commit, but it missed one place in system_ev_to_ump_midi1().
Fix it now.

Fixes: e9e02819a98a ("ALSA: seq: Automatic conversion of UMP events")
Fixes: c2bb79613fed ("ALSA: seq: Fix incorrect UMP type for system messages")
Link: https://lore.kernel.org/r/20240530101044.17524-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_ump_convert.c

index add70b4..f0f3320 100644 (file)
@@ -729,6 +729,7 @@ static int system_ev_to_ump_midi1(const struct snd_seq_event *event,
                                  union snd_ump_midi1_msg *data,
                                  unsigned char status)
 {
+       data->system.type = UMP_MSG_TYPE_SYSTEM; // override
        data->system.status = status;
        return 1;
 }