]> git.sesse.net Git - bmusb/commitdiff
Use even smaller transfers since evidently the kernel has problems allocating 512...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 9 Nov 2015 22:19:03 +0000 (23:19 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 9 Nov 2015 22:19:03 +0000 (23:19 +0100)
bmusb.cpp

index c09c02dc2d19392e0e0927490d5aa215e73238d8..8639b938969bb0169640e8266c53afcdfb60afea 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -978,7 +978,7 @@ void BMUSBCapture::configure_card()
        // set up isochronous transfers for audio and video
        for (int e = 3; e <= 4; ++e) {
                //int num_transfers = (e == 3) ? 6 : 6;
-               int num_transfers = 6;
+               int num_transfers = 10;
                for (int i = 0; i < num_transfers; ++i) {
                        int num_iso_pack, size;
                        if (e == 3) {
@@ -992,7 +992,7 @@ void BMUSBCapture::configure_card()
                                        size &= ~1023;
                                        size += 1024;
                                }
-                               num_iso_pack = (2 << 18) / size;  // 512 kB.
+                               num_iso_pack = (2 << 16) / size;  // 128 kB.
                                printf("Picking %d packets of 0x%x bytes each\n", num_iso_pack, size);
                        } else {
                                size = 0xc0;