mirror of
https://github.com/torvalds/linux
synced 2024-07-08 20:29:39 +00:00
ALSA: seq: Fix incorrect UMP type for system messages
When converting a legacy system message to a UMP packet, it forgot to
modify the UMP type field but keeping the default type (either type 2
or 4). Correct to the right type for system messages.
Fixes: e9e02819a9
("ALSA: seq: Automatic conversion of UMP events")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3ccf3ddd79
commit
c2bb79613f
|
@ -739,6 +739,7 @@ static int system_1p_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;
|
||||
data->system.parm1 = event->data.control.value & 0x7f;
|
||||
return 1;
|
||||
|
@ -750,6 +751,7 @@ static int system_2p_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;
|
||||
data->system.parm1 = (event->data.control.value >> 7) & 0x7f;
|
||||
data->system.parm2 = event->data.control.value & 0x7f;
|
||||
|
|
Loading…
Reference in New Issue
Block a user