Update copyright info
[kinect-audio-setup.git] / kinect_upload_fw / kinect_upload_fw.c
index cf65b5b..5f29f71 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright 2011 Drew Fisher <drew.m.fisher@gmail.com>. All rights reserved.
 /*
  * Copyright 2011 Drew Fisher <drew.m.fisher@gmail.com>. All rights reserved.
+ * Copyright (C) 2016  Antonio Ospite <ao2@ao2.it>
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -294,6 +295,8 @@ int main(int argc, char *argv[]) {
                }
        }
 
                }
        }
 
+       libusb_set_auto_detach_kernel_driver(dev, 1);
+
        ret = libusb_claim_interface(dev, KINECT_AUDIO_INTERFACE);
        if (ret < 0) {
                fprintf(stderr, "libusb_claim_interface failed: %s\n",
        ret = libusb_claim_interface(dev, KINECT_AUDIO_INTERFACE);
        if (ret < 0) {
                fprintf(stderr, "libusb_claim_interface failed: %s\n",