]> git.sesse.net Git - nageru/commitdiff
Fix USB buffer size.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 17:50:29 +0000 (19:50 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 17:50:29 +0000 (19:50 +0200)
bmusb.cpp

index 65c3b1cafb3c15dcdc36b8fb70413a8827ec50a5..a31d260b7c7f82ab52c53b99dc069d1c8d600a33 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -876,7 +876,7 @@ void BMUSBCapture::configure_card()
                                        size &= ~1023;
                                        size += 1024;
                                }
-                               num_iso_pack = (2 << 20) / size;  // 512 kB.
+                               num_iso_pack = (2 << 18) / size;  // 512 kB.
                                printf("Picking %d packets of 0x%x bytes each\n", num_iso_pack, size);
                        } else {
                                size = 0xc0;