ALSA: ump: Don't clear bank selection after sending a program change
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 May 2024 08:38:21 +0000 (10:38 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 May 2024 08:39:50 +0000 (10:39 +0200)
commitfe85f6e607d75b856e7229924c71f55e005f8284
treeb68bbb56ed48a26bd7a51c5c20bdc113d0cdaa15
parentedb32776196afa393c074d6a2733e3a69e66b299
ALSA: ump: Don't clear bank selection after sending a program change

The current code clears the bank selection MSB/LSB after sending a
program change, but this can be wrong, as many apps may not send the
full bank selection with both MSB and LSB but sending only one.
Better to keep the previous bank set.

Fixes: 0b5288f5fe63 ("ALSA: ump: Add legacy raw MIDI support")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20240529083823.5778-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump_convert.c