Skip to contentSkip to conversation

snd-usb-usx2y yields much better latency....

PATCH Applied Karsten Wiese 3 participants 3 messages Jun 24, 2004 – Jun 25, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 snd-usb-usx2y yields much better latency....

....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

Index: alsa-driver/usb/usx2y/usbusx2y.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/usx2y/usbusx2y.h,v retrieving revision 1.5

usb/usx2y/usbusx2y.h +7 -1
diff -u -r1.5 usbusx2y.h
@@ -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
#1 lore raw
Quoted 4 lines · Karsten Wiese

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

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

Applied, thanks.

Review

Quoted 2 lines
(quoted diff) +1 -1
-#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

#2 lore raw

At Fri, 25 Jun 2004 17:19:13 +0200 (METDST),

Quoted 7 lines · Clemens Ladisch
Quoted 4 lines · Karsten Wiese

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

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

Quoted 7 lines

Applied, thanks.

Review

Quoted 2 lines
(quoted diff) +1 -1
-#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