From: Clemens Ladisch <clemens@ladisch.de>
To: "Pikus, Fedor" <fedor_pikus@mentorg.com>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: USB Audio/Midiman - partial success
Date: Fri, 20 Sep 2002 12:04:46 +0200 [thread overview]
Message-ID: <3D8AF2BE.360C7AEC@ladisch.de> (raw)
In-Reply-To: Pine.LNX.4.31.0209191923430.30429-100000@lorien.wv.mentorg.com
Fedor G. Pikus wrote:
> > Fedor G. Pikus wrote:
> > > > > > > arecord: pcm_read:1049: read error: Input/output error
> > >
> > > Still nothing in the log, even with --with-debug=full
>
> I built arecord and libasound with debug and went into it with gdb.
> I traced it to the function static snd_pcm_sframes_t snd_pcm_hw_readi(...)
> in pcm_hw.c line 525. There, it makes a call to
> result = ioctl(fd, SNDRV_PCM_IOCTL_READI_FRAMES, &xferi);
> and pauses for a few seconds. When ioctl returns, result == -1,
> size == 5, xferi == {result = -5, buf = 0x805a470, frames = 4096},
> and errno == 5 (EIO according to asm/include.h, the man page for ioctl does
> not even list it among valid error codes). The function immediately returns,
> and arecord exits.
If the pause is 10 seconds, the error may have been returned by the following
code in snd_pcm_lib_read1:
if (schedule_timeout(10 * HZ) == 0) {
state = ... EXPIRED;
break;
}
...
case EXPIRED:
snd_printd("capture read error (DMA or IRQ trouble?)\n");
err = -EIO;
Or is the pause 5 seconds (the timeout of usb_set_interface)?
if (usb_set_interface(dev, subs->interface, fmt->altset_idx) < 0) {
snd_printk(KERN_ERR "%d:%d:%d: usb_set_interface failed\n",
dev->devnum, subs->interface, fmt->altsetting);
return -EIO;
}
Are you _really_ sure you have recompiled the entire alsa-driver package
with debug output, installed it correctly, and there's nothing in the log?
Please try inserting the line
snd_printk(KERN_ERR "now calling usb_set_interface ...\n");
immediately before the line with usb_set_interface in usbaudio.c. This
message must always be visible in the log.
HTH
Clemens
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next parent reply other threads:[~2002-09-20 10:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.31.0209191923430.30429-100000@lorien.wv.mentorg.com>
2002-09-20 10:04 ` Clemens Ladisch [this message]
[not found] <Pine.LNX.4.31.0209252301320.29794-100000@lorien.wv.mentorg.com>
2002-09-26 7:47 ` USB Audio/Midiman - partial success Clemens Ladisch
2002-09-26 16:08 ` Takashi Iwai
[not found] ` <Pine.LNX.4.31.0209261234130.17593-100000@lorien.wv.mentorg.com>
2002-10-02 13:46 ` Takashi Iwai
[not found] ` <Pine.LNX.4.31.0210032253120.4068-100000@lorien.wv.mentorg.com>
2002-10-04 11:34 ` Takashi Iwai
[not found] <Pine.LNX.4.31.0209220035210.4610-100000@lorien.wv.mentorg.com>
2002-09-23 9:12 ` Clemens Ladisch
[not found] ` <Pine.LNX.4.31.0209232104140.18815-100000@lorien.wv.mentorg.com>
2002-09-24 14:27 ` Takashi Iwai
[not found] ` <Pine.LNX.4.31.0209240835370.9799-100000@lorien.wv.mentorg.com>
2002-09-24 15:50 ` Takashi Iwai
[not found] ` <Pine.LNX.4.31.0209241952400.28299-100000@lorien.wv.mentorg.com>
2002-09-25 10:46 ` Takashi Iwai
[not found] <Pine.LNX.4.31.0209172023540.4425-100000@lorien.wv.mentorg.com>
2002-09-18 9:25 ` Clemens Ladisch
[not found] <Pine.LNX.4.31.0209160838270.10583-100000@lorien.wv.mentorg.com>
2002-09-17 7:29 ` Clemens Ladisch
[not found] <Pine.LNX.4.31.0209132140320.13642-200000@lorien.wv.mentorg.com>
2002-09-16 7:05 ` Clemens Ladisch
[not found] <Pine.LNX.4.31.0209090841350.25400-100000@lorien.wv.mentorg.com>
2002-09-09 17:46 ` Clemens Ladisch
2002-09-09 18:30 ` Takashi Iwai
2002-09-10 8:58 ` Clemens Ladisch
2002-09-10 13:10 ` Takashi Iwai
2002-09-10 13:41 ` Patrick Shirkey
2002-09-12 15:30 ` Takashi Iwai
2002-09-12 22:34 ` Patrick Shirkey
2002-09-13 5:59 ` Patrick Shirkey
2002-09-13 11:30 ` Takashi Iwai
2002-09-13 14:30 ` Patrick Shirkey
[not found] ` <Pine.LNX.4.31.0209122304430.1450-100000@lorien.wv.mentorg.com>
2002-09-13 11:33 ` Takashi Iwai
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=3D8AF2BE.360C7AEC@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=fedor_pikus@mentorg.com \
--cc=tiwai@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.