From: Takashi Iwai <tiwai@suse.de>
To: Patrick Shirkey <pshirkey@boosthardware.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: AW: usb quattro
Date: Mon, 09 Sep 2002 11:42:56 +0200 [thread overview]
Message-ID: <s5hy9abzefz.wl@alsa2.suse.de> (raw)
In-Reply-To: <3D7912A2.1000908@boosthardware.com>
At Sat, 07 Sep 2002 05:40:02 +0900,
Patrick Shirkey wrote:
>
> Takashi Iwai wrote:
>
> >>the Tascam US-428 driver (copied / changed from snd-usb-audio ) showed a
> >>similar problem.
> >>I worked around it by not using ASYNC_UNLINKing of the urbs.
> >
> >
> > yes, this could be the problem.
> > this happend once and i thought it fixed on the alsa side, but it
> > seems that there is something wrong on usb driver itself.
> > why it happened on jack is because jack caused xrun - and the driver
> > tries to stop the stream and unlinks urbs with ASYNC_UNLINK flag.
> >
> > anyway, i changed the code on cvs to use SYNC unlink mode as default.
> > this may have a drawback that the urbs still exist even if the driver
> > stops the stream after detection of xrun. but usually this doesn't
> > matter so much.
> >
> > i've tested normal playbacks and it seems working.
> >
> >
>
> I have actually managed to get a stream from alsaplayer through without
> a hang but the sound is choppy.
>
> I will make a test signal so you can hear what I am getting. It's
> similar to what was happening before the driver was fixed last time.
>
> I got this output from jackd. this happened after I started jack and
> didn't connect any other apps. Maybe it timed out but I don't think it
> is supposed to.
>
> ----
> $ jackd -v -d alsa -d q4
> jackd 0.37.1
> Copyright 2001-2002 Paul Davis and others.
> jackd comes with ABSOLUTELY NO WARRANTY
> This is free software, and you are welcome to redistribute it
> under certain conditions; see the file COPYING for details
>
> 512 waiting for signals
> creating alsa driver ... q4|1024|2|48000|swmon
the resolution of usb-audio device is 1ms. this value is fixed.
thus you need to adjust the period size according to the sample rate
if you want to achieve the real-time response with a small period
size.
that means:
- the sample rate should be 48kHz (or 32kHz), which can be divided by
1000, and should not be 44.1kHz.
- the period size should be aligned to (rate / 1000).
in the case of 48kHz, the period size should be 48, 96, 192, ...
please try this combination.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
next prev parent reply other threads:[~2002-09-09 9:42 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-04 14:32 usb quattro Patrick Shirkey
2002-09-04 14:41 ` Takashi Iwai
2002-09-04 14:51 ` Patrick Shirkey
2002-09-04 14:55 ` Takashi Iwai
2002-09-04 15:26 ` Patrick Shirkey
2002-09-04 15:47 ` Takashi Iwai
2002-09-04 16:35 ` Patrick Shirkey
2002-09-04 16:53 ` Takashi Iwai
2002-09-04 18:55 ` Tim Goetze
2002-09-05 14:02 ` Patrick Shirkey
2002-09-05 15:28 ` Takashi Iwai
2002-09-05 18:31 ` Patrick Shirkey
2002-09-05 19:02 ` AW: " Karsten Wiese
2002-09-05 19:25 ` Patrick Shirkey
2002-09-06 10:29 ` Takashi Iwai
2002-09-06 20:40 ` Patrick Shirkey
2002-09-06 21:13 ` Patrick Shirkey
2002-09-07 4:17 ` usb-midi Patrick Shirkey
2002-09-09 11:41 ` usb-midi Clemens Ladisch
2002-09-09 9:42 ` Takashi Iwai [this message]
2002-09-09 11:56 ` AW: usb quattro Patrick Shirkey
2002-09-09 13:32 ` Patrick Shirkey
2002-09-09 16:36 ` Patrick Shirkey
2002-09-21 8:02 ` Patrick Shirkey
2002-09-24 16:20 ` Patrick Shirkey
2002-09-25 23:55 ` Patrick Shirkey
2002-09-26 0:56 ` Patrick Shirkey
2002-09-26 2:29 ` control info Patrick Shirkey
2002-09-26 13:54 ` usb quattro Takashi Iwai
2002-09-06 10:30 ` 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=s5hy9abzefz.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pshirkey@boosthardware.com \
/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.