summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorFabián Inostroza <soulsonceonfire@gmail.com>2018-04-12 00:37:35 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-24 09:36:36 +0200
commit43b3e7915edd6c20be27444bd70d967fcb07394d (patch)
tree1c02f9e3e6a8f9bb44b2f0725711290288cbfe6c /sound/usb
parentbdc6f4c3db08c7b947b5c4200e600136993fe01b (diff)
downloadlinux-exynos-43b3e7915edd6c20be27444bd70d967fcb07394d.tar.gz
linux-exynos-43b3e7915edd6c20be27444bd70d967fcb07394d.tar.bz2
linux-exynos-43b3e7915edd6c20be27444bd70d967fcb07394d.zip
ALSA: line6: Use correct endpoint type for midi output
commit 7ecb46e9ee9af18e304eb9e7d6804c59a408e846 upstream. Sending MIDI messages to a PODxt through the USB connection shows "usb_submit_urb failed" in dmesg and the message is not received by the POD. The error is caused because in the funcion send_midi_async() in midi.c there is a call to usb_sndbulkpipe() for endpoint 3 OUT, but the PODxt USB descriptor shows that this endpoint it's an interrupt endpoint. Patch tested with PODxt only. [ The bug has been present from the very beginning in the staging driver time, but Fixes below points to the commit moving to sound/ directory so that the fix can be cleanly applied -- tiwai ] Fixes: 61864d844c29 ("ALSA: move line6 usb driver into sound/usb") Signed-off-by: Fabián Inostroza <fabianinostroza@udec.cl> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/line6/midi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/line6/midi.c b/sound/usb/line6/midi.c
index 1d3a23b02d68..b5d62b5f59ba 100644
--- a/sound/usb/line6/midi.c
+++ b/sound/usb/line6/midi.c
@@ -125,7 +125,7 @@ static int send_midi_async(struct usb_line6 *line6, unsigned char *data,
}
usb_fill_int_urb(urb, line6->usbdev,
- usb_sndbulkpipe(line6->usbdev,
+ usb_sndintpipe(line6->usbdev,
line6->properties->ep_ctrl_w),
transfer_buffer, length, midi_sent, line6,
line6->interval);