tascam us-122 midi in does not work
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.
Can anyone confirm this to work on a normal system?
Regards,
Werner
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
Quoted 1 line
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504
Quoted 11 lines · Werner Schweer
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.Can anyone confirm this to work on a normal system?
Hmm. US122, 2.6.6 with ALSA 1.0.5 and jack works here. Another machine with us122 and ALSA CVS on 2.4.25rc1 is also fine.
What about reconnecting midi clients without removing usb cable?
martin
Signature · 9 lines
Living on earth may be expensive,
but it includes an annual free trip around the sun.
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKNDQuoted 11 lines · Martin Langer
Quoted 10 lines · Werner Schweer
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.
Quoted 6 lines
Quoted 1 line
Can anyone confirm this to work on a normal system?
Hmm. US122, 2.6.6 with ALSA 1.0.5 and jack works here. Another machine with us122 and ALSA CVS on 2.4.25rc1 is also fine.
What about reconnecting midi clients without removing usb cable?
does not work either.
/Werner
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
Am Sonntag 13 Juni 2004 13:07 schrieb Werner Schweer:
Quoted 10 lines
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.
Didn't try that kernel yet.
To see more, you can change snd_usbmidi_urb_error() in alsa-kernel:141 to look like that:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
static int snd_usbmidi_urb_error(int status)
{
snd_printk(KERN_ERR "urb status %d\n", status);
if (status == -ENOENT)
return status; /* killed */
if (status == -EILSEQ ||
status == -ECONNRESET ||
status == -ETIMEDOUT)
return -ENODEV; /* device removed/shutdown */
return 0; /* continue */
}<<<<<<
If this shows a status that causes a negativ return value when you start jack, change snd_usbmidi_urb_error() further more so it returns 0 in that case. that can crash the machine or help......
regards,
Karsten
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
Quoted 27 lines · Karsten Wiese
Am Sonntag 13 Juni 2004 13:07 schrieb Werner Schweer:
Quoted 9 lines
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.Didn't try that kernel yet.
To see more, you can change
snd_usbmidi_urb_error()in alsa-kernel:141 to look like that:static int
snd_usbmidi_urb_error(int status){ snd_printk(KERN_ERR "urb status %d\n", status); if (status == -ENOENT) return status; /* killed */ if (status == -EILSEQ || status == -ECONNRESET || status == -ETIMEDOUT) return -ENODEV; /* device removed/shutdown */ return 0; /* continue */ }
Quoted 8 lines
<<<<<<
If this shows a status that causes a negativ return value when you start jack, change
snd_usbmidi_urb_error()further more so it returns 0 in that case. that can crash the machine or help......regards,
Karsten
In current CVS the function looks like:
/*
* Error handling for URB completion functions.
*/
static int snd_usbmidi_urb_error(int status)
{
if (status == -ENOENT)
return status; /* killed */
if (status == -EILSEQ ||
status == -ECONNRESET ||
status == -ETIMEDOUT)
return -ENODEV; /* device removed/shutdown */
snd_printk(KERN_ERR "urb status %d\n", status);
return 0; /* continue */
}and after loading jack the logfile has an "urb status" message of -108 (ESHUTDOWN?) followed by a "usb_submit_urb: -32" (EPIPE) message. From the above code i assume snd_usbmidi_urb_error() returns 0 for status -108.
Regards,
Werner
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
Am Mittwoch 16 Juni 2004 19:20 schrieb Werner Schweer:
Quoted 11 lines · Karsten Wiese
Quoted 10 lines
Am Sonntag 13 Juni 2004 13:07 schrieb Werner Schweer:
Quoted 9 lines
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.
<snip>
Quoted 6 lines
and after loading jack the logfile has an "urb status" message of -108 (ESHUTDOWN?) followed by a "
usb_submit_urb: -32" (EPIPE) message. From the above code i assumesnd_usbmidi_urb_error()returns 0 for status -108.
Attachached is a raw-fix@cvs-head .
Proofs here using aplay on 2.6.7 on fc1.
PLease try it.
Karsten
? .directory
? alsa-driver/cscope.files
? alsa-driver/cscope.out
? alsa-driver/usb/.directory
? alsa-kernel/cscope.files
? alsa-kernel/cscope.out
? alsa-kernel/usb/cscope.out
Index: alsa-driver/usb/usbmidi.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/usbmidi.c,v retrieving revision 1.12
usb/usbmidi.c +1 -0
@@ -38,4 +38,5 @@#endif EXPORT_SYMBOL (snd_usb_create_midi_interface); +EXPORT_SYMBOL (snd_usbmidi_in_urb_submit);EXPORT_SYMBOL (snd_usbmidi_disconnect);
Index: alsa-driver/usb/usx2y/usbusx2yaudio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/usx2y/usbusx2yaudio.c,v retrieving revision 1.11
usb/usx2y/usbusx2yaudio.c +4 -0
@@ -993,6 +993,7 @@if (usX2Y_stream->usX2Y->format != format) {int alternate, unlink_err; +struct list_head * p;if (format ==SNDRV_PCM_FORMAT_S24_3LE ) { alternate =2 ; usX2Y_stream->usX2Y->stride =6 ;
@@ -1009,6 +1010,9 @@ usX2Y_stream->usX2Y->In04urb->dev = usX2Y_stream->usX2Y->chip.dev; err =usb_submit_urb (usX2Y_stream->usX2Y->In04urb,GFP_KERNEL ); } +list_for_each (p, &usX2Y_stream->usX2Y->chip.midi_list) { +snd_usbmidi_in_urb_submit (p); + } usX2Y_stream->usX2Y->format = format; usX2Y_stream->usX2Y->rate =0 ; }
Index: alsa-kernel/usb/usbmidi.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbmidi.c,v retrieving revision 1.28
usb/usbmidi.c +42 -7
111 lines not on this page · raw message
Quoted 15 lines · Karsten Wiese
Am Mittwoch 16 Juni 2004 19:20 schrieb Werner Schweer:
Quoted 11 lines · Karsten Wiese
Quoted 10 lines
Am Sonntag 13 Juni 2004 13:07 schrieb Werner Schweer:
Quoted 9 lines
Hello,
Some strange effect occurs on my tascam us-122 audio/midi usb device:
After starting JACK the midi input does not work anymore. Not even
the midi in led on the us-122 flashes. Midi output is always fine. After stopping JACK midi input still does not work. Midi input works again after disconnect/reconnect the usb cable.
I'm using current ALSA cvs and kernel 2.6.7rc3.<snip>
Quoted 8 lines
Quoted 4 lines
and after loading jack the logfile has an "urb status" message of -108 (ESHUTDOWN?) followed by a "
usb_submit_urb: -32" (EPIPE) message. From the above code i assumesnd_usbmidi_urb_error()returns 0 for status -108.Attachached is a raw-fix@cvs-head .
Proofs here using aplay on 2.6.7 on fc1.
PLease try it.
thank you, works fine!
/Werner
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND