mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-12 20:35:23 +02:00
ALSA: seq: Don't clear bank selection at event -> UMP MIDI2 conversion
[ Upstream commita200df7deb
] The current code to convert from a legacy sequencer event to UMP MIDI2 clears the bank selection at each time the program change is submitted. This is confusing and may lead to incorrect bank values tranmitted to the destination in the end. Drop the line to clear the bank info and keep the provided values. Fixes:e9e02819a9
("ALSA: seq: Automatic conversion of UMP events") Link: https://lore.kernel.org/r/20240527151852.29036-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5c3df8c4f4
commit
4448b5eaab
|
@ -892,7 +892,6 @@ static int pgm_ev_to_ump_midi2(const struct snd_seq_event *event,
|
||||||
data->pg.bank_msb = cc->cc_bank_msb;
|
data->pg.bank_msb = cc->cc_bank_msb;
|
||||||
data->pg.bank_lsb = cc->cc_bank_lsb;
|
data->pg.bank_lsb = cc->cc_bank_lsb;
|
||||||
cc->bank_set = 0;
|
cc->bank_set = 0;
|
||||||
cc->cc_bank_msb = cc->cc_bank_lsb = 0;
|
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user