]> git.sesse.net Git - bmusb/blobdiff - bmusb.cpp
Document alternates 3 and 4.
[bmusb] / bmusb.cpp
index 93ce2733572267083fc3318f91f1a406f36624c2..16da5f01e467409188f4cb3ab92335631802d401 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -607,8 +607,6 @@ void BMUSBCapture::cb_xfr(struct libusb_transfer *xfr)
 
 void BMUSBCapture::usb_thread_func()
 {
-       printf("usb thread started\n");
-
        sched_param param;
        memset(&param, 0, sizeof(param));
        param.sched_priority = 1;
@@ -684,6 +682,9 @@ void BMUSBCapture::configure_card()
        // Alternate setting 1 is output, alternate setting 2 is input.
        // Card is reset when switching alternates, so the driver uses
        // this “double switch” when it wants to reset.
+       //
+       // There's also alternate settings 3 and 4, which seem to be
+       // like 1 and 2 except they advertise less bandwidth needed.
        rc = libusb_set_interface_alt_setting(devh, /*interface=*/0, /*alternate_setting=*/1);
        if (rc < 0) {
                fprintf(stderr, "Error setting alternate 1: %s\n", libusb_error_name(rc));