From 12fc3ca26e888caa54fcf1ad6e47593b3f39f6d4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 9 Nov 2015 23:19:03 +0100 Subject: [PATCH] Use even smaller transfers since evidently the kernel has problems allocating 512 kB ones. :-/ --- bmusb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bmusb.cpp b/bmusb.cpp index c09c02d..8639b93 100644 --- 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; -- 2.39.2