]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USBATM: change the default speedtouch iso altsetting
authorDuncan Sands <duncan.sands@math.u-psud.fr>
Fri, 28 Apr 2006 16:44:06 +0000 (18:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 May 2006 06:43:54 +0000 (23:43 -0700)
The maximum possible bandwidth for a speedtouch modem is about 7Mbaud.
You can only get this by using isochronous urbs (enable_isoc=1) and
altsetting 3.  With the current default altsetting of 2, the modem
maxes out at about 4Mbaud.  So change the default altsetting to 3
when using isochronous urbs.  It would be nice to base the altsetting
on the detected line speed, but that's hard given the current design.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/speedtch.c

index 7860c8a5800d5a184adc8abea047dbef16c37b89..956b7a1e8af98c0a37056f280c371b6dd785a5dd 100644 (file)
@@ -69,7 +69,7 @@ static const char speedtch_driver_name[] = "speedtch";
 #define RESUBMIT_DELAY         1000    /* milliseconds */
 
 #define DEFAULT_BULK_ALTSETTING        1
-#define DEFAULT_ISOC_ALTSETTING        2
+#define DEFAULT_ISOC_ALTSETTING        3
 #define DEFAULT_DL_512_FIRST   0
 #define DEFAULT_ENABLE_ISOC    0
 #define DEFAULT_SW_BUFFERING   0