From: Werner Schweer <ws@seh.de>
To: alsa-devel@lists.sourceforge.net
Subject: Re: tascam us-122 midi in does not work
Date: Wed, 16 Jun 2004 19:20:53 +0200 [thread overview]
Message-ID: <200406161920.53116.ws@seh.de> (raw)
In-Reply-To: <200406150110.31355.annabellesgarden@yahoo.de>
On Tuesday 15 June 2004 01:10, Karsten Wiese wrote:
> Am Sonntag 13 Juni 2004 13:07 schrieb 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.
>
> 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 */
> }
> <<<<<<
>
> 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
next prev parent reply other threads:[~2004-06-16 17:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-13 11:07 tascam us-122 midi in does not work Werner Schweer
2004-06-14 22:43 ` Martin Langer
2004-06-16 17:25 ` Werner Schweer
2004-06-14 23:10 ` Karsten Wiese
2004-06-16 17:20 ` Werner Schweer [this message]
2004-06-18 4:09 ` Karsten Wiese
2004-06-18 18:51 ` Werner Schweer
-- strict thread matches above, loose matches on Subject: below --
2004-06-12 9:23 Werner Schweer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406161920.53116.ws@seh.de \
--to=ws@seh.de \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox