]> git.sesse.net Git - bmusb/commitdiff
Reduce the verbosity somewhat.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 18 Nov 2015 00:08:44 +0000 (01:08 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 18 Nov 2015 00:08:44 +0000 (01:08 +0100)
bmusb.cpp

index 18ea353bb580a06ad04b014ab4fb347df1c5964b..62376db795743a93079a745f32f70458ea092ed1 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -806,6 +806,8 @@ void BMUSBCapture::configure_card()
                fprintf(stderr, "Error getting configuration: %s\n", libusb_error_name(rc));
                exit(1);
        }
+
+#if 0
        printf("%d interface\n", config->bNumInterfaces);
        for (int interface_number = 0; interface_number < config->bNumInterfaces; ++interface_number) {
                printf("  interface %d\n", interface_number);
@@ -819,6 +821,7 @@ void BMUSBCapture::configure_card()
                        }
                }
        }
+#endif
 
        rc = libusb_set_configuration(devh, /*configuration=*/1);
        if (rc < 0) {
@@ -947,12 +950,18 @@ void BMUSBCapture::configure_card()
                        fprintf(stderr, "Error on control %d: %s\n", ctrls[req].index, libusb_error_name(rc));
                        exit(1);
                }
-               
+
+               if (ctrls[req].index == 16 && rc == 4) {
+                       printf("Card firmware version: 0x%02x%02x\n", value[2], value[3]);
+               }
+
+#if 0
                printf("rc=%d: ep=%d@%d %d -> 0x", rc, ctrls[req].endpoint, ctrls[req].request, ctrls[req].index);
                for (int i = 0; i < rc; ++i) {
                        printf("%02x", value[i]);
                }
                printf("\n");
+#endif
        }
 
 #if 0
@@ -1060,10 +1069,8 @@ void BMUSBCapture::configure_card()
 
 void BMUSBCapture::start_bm_capture()
 {
-       printf("starting capture\n");
        int i = 0;
        for (libusb_transfer *xfr : iso_xfrs) {
-               printf("submitting transfer...\n");
                int rc = libusb_submit_transfer(xfr);
                ++i;
                if (rc < 0) {