ALSA: line6: correct midi status byte when receiving data from podxt
authorArtem Egorkine <arteme@gmail.com>
Sun, 25 Dec 2022 10:57:27 +0000 (12:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:58:47 +0000 (11:58 +0100)
commitac4b4fdf32626397dd943c86d86e3f5d9d9812a4
treecb8306a3d57fb95db746d46bebac205e9814ab4f
parent83c44f0ebfd075ec7526487ec1835c44aeb74e79
ALSA: line6: correct midi status byte when receiving data from podxt

commit 8508fa2e7472f673edbeedf1b1d2b7a6bb898ecc upstream.

A PODxt device sends 0xb2, 0xc2 or 0xf2 as a status byte for MIDI
messages over USB that should otherwise have a 0xb0, 0xc0 or 0xf0
status byte. This is usually corrected by the driver on other OSes.

This fixes MIDI sysex messages sent by PODxt.

[ tiwai: fixed white spaces ]

Signed-off-by: Artem Egorkine <arteme@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221225105728.1153989-1-arteme@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/line6/driver.c
sound/usb/line6/midi.c
sound/usb/line6/midibuf.c
sound/usb/line6/midibuf.h
sound/usb/line6/pod.c