Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]snd-usb-usx2y yields much better latency....
@ 2004-06-24 19:50 Karsten Wiese
  2004-06-25 15:19 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Karsten Wiese @ 2004-06-24 19:50 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

....with the default setting as in this patch.

Please commit with comment
	- set NRPACKS to 1 as default setting to improve latency.

Thanks & Regards
Karsten


[-- Attachment #2: snd-usb-usx2y.patch.1Packet --]
[-- Type: text/x-diff, Size: 959 bytes --]

Index: alsa-driver/usb/usx2y/usbusx2y.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/usx2y/usbusx2y.h,v
retrieving revision 1.5
diff -u -r1.5 usbusx2y.h
--- alsa-driver/usb/usx2y/usbusx2y.h	15 Jun 2004 10:55:39 -0000	1.5
+++ alsa-driver/usb/usx2y/usbusx2y.h	24 Jun 2004 19:47:34 -0000
@@ -5,7 +5,13 @@
 #include "usbus428ctldefs.h" 
 
 #define NRURBS	        2	/* */
-#define NRPACKS		2	/* usb-frames/ms per urb: 1 and 2 are supported. set to 1 if you want lowest possible latency */
+#define NRPACKS		1	/* usb-frames/ms per urb: 1 and 2 are supported.
+				   setting to 2 will PERHAPS make it easier for slow machines.
+				   Jitter will be higher though.
+				   On my PIII 500Mhz Laptop setting to 1 is the only way to go 
+				   for PLAYING synths. i.e. Jack & Aeolus sound quit nicely 
+				   at 4 periods 64 frames. 
+				*/
 
 #define URBS_AsyncSeq 10
 #define URB_DataLen_AsyncSeq 32

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]snd-usb-usx2y yields much better latency....
  2004-06-24 19:50 [PATCH]snd-usb-usx2y yields much better latency Karsten Wiese
@ 2004-06-25 15:19 ` Clemens Ladisch
  2004-06-25 15:54   ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2004-06-25 15:19 UTC (permalink / raw)
  To: Karsten Wiese; +Cc: alsa-devel

Karsten Wiese wrote:
> ....with the default setting as in this patch.
>
> Please commit with comment
> 	- set NRPACKS to 1 as default setting to improve latency.

Applied, thanks.

> -#define NRPACKS      2
> +#define NRPACKS      1

The generic driver uses a module option for this.  It might be a good
idea to have consistent behaviour in both drivers.


Regards,
Clemens




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]snd-usb-usx2y yields much better latency....
  2004-06-25 15:19 ` Clemens Ladisch
@ 2004-06-25 15:54   ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2004-06-25 15:54 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Karsten Wiese, alsa-devel

At Fri, 25 Jun 2004 17:19:13 +0200 (METDST),
Clemens Ladisch wrote:
> 
> Karsten Wiese wrote:
> > ....with the default setting as in this patch.
> >
> > Please commit with comment
> > 	- set NRPACKS to 1 as default setting to improve latency.
> 
> Applied, thanks.
> 
> > -#define NRPACKS      2
> > +#define NRPACKS      1
> 
> The generic driver uses a module option for this.  It might be a good
> idea to have consistent behaviour in both drivers.

More better would be to merge them ;)
Or we can split the common part from usb-audio.

Anyway, if usx2y works stably, it's nicer to have it on 2.6 kernel
tree, too.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-25 15:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 19:50 [PATCH]snd-usb-usx2y yields much better latency Karsten Wiese
2004-06-25 15:19 ` Clemens Ladisch
2004-06-25 15:54   ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox