ALSA: ump: Fix parsing of 0xFx command
authorTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2023 08:31:24 +0000 (10:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2023 08:32:59 +0000 (10:32 +0200)
commit77700b81bd0e47d89d50eb4b3f2f323492f79998
tree02659a4b54abe86c699235ad8b387f1b7d061356
parentab2335daa6ef70df56c98c216261a93e28ae52b3
ALSA: ump: Fix parsing of 0xFx command

The MIDI 1.0 parser retrieved the 0xFx command with a wrong bit shift,
resulting in the bogus type.  Fix the bit shift size.

Fixes: 0b5288f5fe63 ("ALSA: ump: Add legacy raw MIDI support")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/0fbc0b27-54b8-4cda-800e-37e7a03fed39@kili.mountain
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20230525083124.15277-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump_convert.c