diff options
author | Artem Egorkine <arteme@gmail.com> | 2022-12-25 12:57:27 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-12-26 09:06:19 +0100 |
commit | 8508fa2e7472f673edbeedf1b1d2b7a6bb898ecc (patch) | |
tree | ce35174482cc6e0b4bcedec73b7c6ab8199256cf /sound/usb/line6/pod.c | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) | |
download | lwn-8508fa2e7472f673edbeedf1b1d2b7a6bb898ecc.tar.gz lwn-8508fa2e7472f673edbeedf1b1d2b7a6bb898ecc.zip |
ALSA: line6: correct midi status byte when receiving data from podxt
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>
Diffstat (limited to 'sound/usb/line6/pod.c')
-rw-r--r-- | sound/usb/line6/pod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/usb/line6/pod.c b/sound/usb/line6/pod.c index cd41aa7f0385..d173971e5f02 100644 --- a/sound/usb/line6/pod.c +++ b/sound/usb/line6/pod.c @@ -159,8 +159,9 @@ static struct line6_pcm_properties pod_pcm_properties = { .bytes_per_channel = 3 /* SNDRV_PCM_FMTBIT_S24_3LE */ }; + static const char pod_version_header[] = { - 0xf2, 0x7e, 0x7f, 0x06, 0x02 + 0xf0, 0x7e, 0x7f, 0x06, 0x02 }; static char *pod_alloc_sysex_buffer(struct usb_line6_pod *pod, int code, |