Pete Batard [Wed, 2 May 2012 17:02:50 +0000 (18:02 +0100)]
Samples: Remove interface requests when querying WCID devices
* As per MS documentation, querying of the Extended Properties
is a device request (0xC0), not an interface one (0xC1), so
there is no issue with the WinUSB wIndex override.
Pete Batard [Wed, 2 May 2012 11:06:36 +0000 (12:06 +0100)]
Autotools: Add bootstrap.sh
bootstrap.sh does not invoke configure whereas autogen.sh does.
This allows libusbx users to choose the one that suits them best.
Uri Lublin [Tue, 1 May 2012 13:47:00 +0000 (14:47 +0100)]
Windows: Fix removal of usbi_fd_notification calls in submit_*_transfer
Commit
4cccbed825fe1dc13812 accidentally removed those calls,
when ! ifdef DYNAMIC_FDS blocks were removed.
Pete Batard [Wed, 25 Apr 2012 23:30:57 +0000 (00:30 +0100)]
Core: update version struct for ABI compatibility
* Adds a static string for describe
* Also update version documentation
James Hanko [Thu, 20 Oct 2011 07:32:34 +0000 (00:32 -0700)]
Linux: Search for /dev/usbdev<bus>.<device> USB device special files
If neither the (now deprecated) usbfs filesystem nor udev is available
then libusbx searches for device nodes also in /dev where they may be
created if the kernel was built with the option CONFIG_USB_DEVICE_CLASS.
This helps on embedded systems such as Android, and all mdev users.
Martin Pieuchot [Thu, 19 Apr 2012 09:33:36 +0000 (11:33 +0200)]
BSD: Provide libusb_get_device_speed() data
Because the different speed values used by the libusb and OpenBSD's
usb_device_info structure are compatible, keep the code simple and
just copy the value returned by the USB_GET_DEVICEINFO ioctl() call.
Ludovic Rousseau [Fri, 20 Apr 2012 09:36:07 +0000 (11:36 +0200)]
Samples: Fix not handled in switch warning in xusb.c
xusb.c: In function ‘test_device’:
xusb.c:722:2: warning: enumeration value ‘USE_GENERIC’ not handled in switch [-Wswitch-enum]
Ludovic Rousseau [Fri, 20 Apr 2012 09:29:50 +0000 (11:29 +0200)]
Samples: Remove unneeded inline in xusb.c
Fixes:
warning: function ‘perr’ can never be inlined because it uses variable argument lists [-Winline]
warning: inlining failed in call to ‘perr’: function not inlinable [-Winline]
Ludovic Rousseau [Fri, 20 Apr 2012 21:25:38 +0000 (22:25 +0100)]
Linux: Fix signed vs unsigned compiler warnings
os/linux_usbfs.c: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Xiaofan Chen [Sat, 14 Apr 2012 15:17:18 +0000 (23:17 +0800)]
Linux: Silence unused variable warnings without CLOCK_MONOTONIC
Peter Stuge [Mon, 16 Apr 2012 01:59:44 +0000 (03:59 +0200)]
Core: Add debug message with callback address on completed transfer
Pete Batard [Thu, 19 Apr 2012 17:01:04 +0000 (18:01 +0100)]
BSD: add NetBSD experimental support
* also improve OS/backend selection in configure.ac
* original libusb patches from Peter Stuge and Xiaofan Chen
Pete Batard [Tue, 17 Apr 2012 01:20:40 +0000 (02:20 +0100)]
libusbx-1.0.10
Ludovic Rousseau [Sat, 14 Apr 2012 07:27:24 +0000 (09:27 +0200)]
Samples: Fix initialization discards qualifiers warnings in xusb.c
xusb.c: In function ‘read_ms_winsub_feature_descriptors’:
xusb.c:542: warning: initialization discards qualifiers from pointer target type
xusb.c:543: warning: initialization discards qualifiers from pointer target type
xusb.c: In function ‘test_device’:
xusb.c:598: warning: initialization discards qualifiers from pointer target type
xusb.c:598: warning: initialization discards qualifiers from pointer target type
xusb.c:598: warning: initialization discards qualifiers from pointer target type
xusb.c:599: warning: initialization discards qualifiers from pointer target type
xusb.c:599: warning: initialization discards qualifiers from pointer target type
Ludovic Rousseau [Sat, 14 Apr 2012 07:24:58 +0000 (09:24 +0200)]
Samples: Fix no previous prototype warnings in xusb.c
xusb.c:139: warning: no previous prototype for ‘display_buffer_hex’
xusb.c:169: warning: no previous prototype for ‘display_ps3_status’
xusb.c:260: warning: no previous prototype for ‘display_xbox_status’
xusb.c:281: warning: no previous prototype for ‘set_xbox_actuators’
xusb.c:299: warning: no previous prototype for ‘send_mass_storage_command’
xusb.c:354: warning: no previous prototype for ‘get_mass_storage_status’
xusb.c:401: warning: no previous prototype for ‘get_sense’
xusb.c:431: warning: no previous prototype for ‘test_mass_storage’
xusb.c:530: warning: no previous prototype for ‘read_ms_winsub_feature_descriptors’
xusb.c:583: warning: no previous prototype for ‘test_device’
Ludovic Rousseau [Sat, 14 Apr 2012 07:22:15 +0000 (09:22 +0200)]
Misc: Add a missing newline at end of .private/README.txt
Pete Batard [Fri, 13 Apr 2012 21:23:58 +0000 (22:23 +0100)]
libusbx 1.0.10-rc1
Pete Batard [Thu, 12 Apr 2012 22:52:49 +0000 (23:52 +0100)]
Windows: add internal binary snapshot scripts
Pete Batard [Wed, 11 Apr 2012 22:12:21 +0000 (23:12 +0100)]
Git: add pre-commit and post-rewrite hooks for versioning
* Also adds the maintainer-only .private directory
Pete Batard [Wed, 11 Apr 2012 16:44:57 +0000 (17:44 +0100)]
Misc: update pkg-config template
* Change human readable name to libusbx and mention OpenBSD
Pete Batard [Tue, 10 Apr 2012 12:30:24 +0000 (13:30 +0100)]
Windows: Remove #define options and use same set of defaults
* The DYNAMIC_FDS, AUTO_CLAIM and FORCE_INSTANT_TIMEOUTS options
were introduced for development/testing and don't appear to be
used by the Windows backend users => remove them.
Pete Batard [Tue, 10 Apr 2012 12:05:37 +0000 (13:05 +0100)]
Windows: misc improvements
* prefer calloc over malloc
* silence VS2010 intellisense warnings on mem allocation
* other minor fixes and formatting improvements to align with -pbatard
Pete Batard [Tue, 10 Apr 2012 10:58:53 +0000 (11:58 +0100)]
Core: Add get_version() call
* Also some formatting/typo improvements
Pete Batard [Mon, 9 Apr 2012 22:31:24 +0000 (23:31 +0100)]
Windows: remove obsolete lsusb project files
Pete Batard [Mon, 9 Apr 2012 21:59:14 +0000 (22:59 +0100)]
Windows: add VS2010 project files
Peter Stuge [Sat, 7 Apr 2012 03:20:36 +0000 (05:20 +0200)]
examples: Use snprintf() instead of sprintf() in dpfp and dpfp_threaded
The OpenBSD C compiler generates a warning for every use of sprintf()
and for a good reason. Reported in http://marc.info/?m=
133376187514495
Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
Peter Stuge [Sat, 7 Apr 2012 01:55:36 +0000 (03:55 +0200)]
OpenBSD: Fix warning: 'hpriv' may be used uninitialized
As reported in http://marc.info/?m=
133376187514495
The variable would be used uninitialized when the internal list of
open devices is empty as obsd_handle_events() checks which device
the event fd belongs to, which can not actually happen, but if it
ever does happen then we will now return LIBUSB_ERROR_NO_DEVICE.
Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
Pete Batard [Mon, 9 Apr 2012 21:28:34 +0000 (22:28 +0100)]
Windows: Fix support for variadic macros
* Visual C++ did not support variadic macros until VS2005, as per
http://msdn.microsoft.com/en-us/library/ms177415%28v=VS.80%29.aspx
Ludovic Rousseau [Wed, 4 Apr 2012 07:30:12 +0000 (09:30 +0200)]
Misc: Indicate that licence is LGPL-2.1 or later
Also make the name of the licence more explicit.
Ludovic Rousseau [Wed, 4 Apr 2012 07:24:17 +0000 (09:24 +0200)]
Misc: Update list of maintainers from README
Pete Batard [Tue, 3 Apr 2012 15:31:32 +0000 (16:31 +0100)]
Misc: Fix missing libsub's -> libusbx's from previous patches
Pete Batard [Tue, 3 Apr 2012 12:42:42 +0000 (13:42 +0100)]
Doc: Update doxygen for libusbx and add logo
Pete Batard [Tue, 3 Apr 2012 12:40:39 +0000 (13:40 +0100)]
Misc: Rebrand to libusbx
* Mentions of 'libusb' in doxygen are changed to 'libusbx'
* Also update copyright notices and remove unneeded EOF LFs
Pete Batard [Mon, 2 Apr 2012 14:47:53 +0000 (15:47 +0100)]
libusbx 1.0.9
* Also updated AUTHORS and THANKS
Pete Batard [Sun, 1 Apr 2012 20:30:52 +0000 (21:30 +0100)]
Samples: Fix "warning: no newline at end of file" in xusb.c
* Also remove trailing whitespaces
Pete Batard [Sat, 31 Mar 2012 21:32:56 +0000 (22:32 +0100)]
Autotools: Fix missing DLL .def file from make dist
Pete Batard [Sat, 31 Mar 2012 21:14:47 +0000 (22:14 +0100)]
Autotools: Fix msvc dir not being included in make dist
Hans de Goede [Fri, 30 Mar 2012 12:40:32 +0000 (13:40 +0100)]
Linux: Don't spam the console with 'device unconfigured' errors
Pete Batard [Fri, 30 Mar 2012 23:17:44 +0000 (00:17 +0100)]
libusbx 1.0.9-rc5
Pete Batard [Fri, 30 Mar 2012 23:21:18 +0000 (00:21 +0100)]
Autotools: remove --enable-debug-log option in autogen.sh
Pete Batard [Fri, 30 Mar 2012 12:40:32 +0000 (13:40 +0100)]
Darwin: Fix a warning on 64 bit platforms
Pete Batard [Fri, 30 Mar 2012 12:05:12 +0000 (13:05 +0100)]
Autotools: Fix make distcheck and add ChangeLog
Pete Batard [Fri, 30 Mar 2012 12:04:18 +0000 (13:04 +0100)]
Autotools: Fix package name and URLs in configure.ac
Pete Batard [Thu, 29 Mar 2012 22:22:28 +0000 (23:22 +0100)]
libusbx 1.0.9-rc4
Pete Batard [Thu, 29 Mar 2012 22:21:25 +0000 (23:21 +0100)]
Git: add export-ignore for git config file
* Prevents release archives produced from git to contain
git related files.
Pete Batard [Wed, 28 Mar 2012 10:43:00 +0000 (11:43 +0100)]
Samples: fix a "value is always 0" Clang warning in xusb.c
* Remove the use of os_fd[i].recipient and alter comments with
regards to Windows Extended Props test limitations with WinUSB
Pete Batard [Wed, 28 Mar 2012 00:02:02 +0000 (01:02 +0100)]
Windows: fix Clang warnings about unused assignations
Pete Batard [Wed, 28 Mar 2012 09:56:32 +0000 (10:56 +0100)]
Samples: Fix missing xusb from VS project files
Pete Batard [Mon, 26 Mar 2012 22:34:25 +0000 (23:34 +0100)]
autotools: LT_LANG([Windows Resource]) makes windres check redundant
Pete Batard [Mon, 26 Mar 2012 22:48:49 +0000 (23:48 +0100)]
Examples: add xusb sample
* Also improvements to WDK build scripts:
cd to original dir on error, use 2 cores if available
Pete Batard [Mon, 26 Mar 2012 23:03:07 +0000 (00:03 +0100)]
VS2005: Bring x86_64 output directories in line with x86_32
Hans de Goede [Mon, 26 Mar 2012 22:01:48 +0000 (23:01 +0100)]
Linux: fix inaccurate comment
* We don't stop on urbs/iso pkts with less data then requested
Hans de Goede [Mon, 26 Mar 2012 22:00:28 +0000 (23:00 +0100)]
Linux: Remove unneeded status assignation
* status value was never used
Hans de Goede [Mon, 26 Mar 2012 21:54:12 +0000 (22:54 +0100)]
Linux: Translate iso pkt status codes to libusb transfer status codes
* Linux negative errno from iso pkts status must be translated and reported.
Hans de Goede [Mon, 26 Mar 2012 21:51:56 +0000 (22:51 +0100)]
Linux: Fix handling of urb status codes
* Adds EOVERFLOW handling in handle_control_completion
* Removes handling of codes that can never occur on an iso urb
Hans de Goede [Mon, 26 Mar 2012 20:37:03 +0000 (21:37 +0100)]
Linux: Don't print errors when cancel_transfer fails with NOT_FOUND
* Under some cricumstances, LIBUSB_ERROR_NOT_FOUND is an expected
return value for cancel_transfer so printing an error is undesirable.
Hans de Goede [Mon, 26 Mar 2012 20:33:39 +0000 (21:33 +0100)]
Linux: Fix cancel_transfer return value when cancelling a multi-urb transfer
* if we've successfully cancelled the last urb, and then another urb
fails with errno == EINVAL, we shouldn't return LIBUSB_ERROR_NOT_FOUND
Peter Stuge [Thu, 22 Mar 2012 00:52:59 +0000 (01:52 +0100)]
libusbi.h: Add IS_EPIN() IS_EPOUT() IS_XFERIN() and IS_XFEROUT() macros
The macros make backend code a little simpler to read, since the
transfer and endpoint direction is checked in several places across
the supported platforms.
Peter Stuge [Wed, 22 Feb 2012 13:21:54 +0000 (14:21 +0100)]
Add LIBUSB_TRANSFER_ADD_ZERO_PACKET flag to indicate need for ZLP
Some protocols which use USB require an extra zero length data packet
to signal end-of-transfer on bulk endpoints, if the last data packet
is exactly wMaxPacketSize bytes long.
This flag allows applications to inform libusb about this requirement,
so that libusb can handle the issue transparently.
At the moment the new flag is only supported on Linux, and submitting
a transfer with the flag set returns an error at submit time on other
systems. Hopefully implementations will soon follow for other systems.
References #6.
Peter Stuge [Sun, 19 Feb 2012 05:58:16 +0000 (06:58 +0100)]
libusb.h: Add comma after last value in enums to ease future expansion
Peter Stuge [Sun, 19 Feb 2012 04:39:33 +0000 (05:39 +0100)]
Linux: Rework bulk continuation check to generic kernel version check
The old check_flag_bulk_continuation() tested for one specific running
kernel version. The new kernel_version_ge() instead allows to test the
running kernel version against major, minor and sublevel parameters.
Peter Stuge [Sun, 19 Feb 2012 04:32:10 +0000 (05:32 +0100)]
OpenBSD: Correctly catch attempts to do isochronous OUT transfers
LIBUSB_ENDPOINT_OUT is the value of the direction bit, which is 0 for
OUT transfers, so the previous condition could never evaluate to true.
Peter Stuge [Sat, 18 Feb 2012 23:42:20 +0000 (00:42 +0100)]
Darwin: Do not reject devices with product id 0x0000
Fixes #128.
Peter Stuge [Mon, 13 Feb 2012 15:59:51 +0000 (16:59 +0100)]
Do not call timerfd functions when timerfd is not being used
When libusb was built with timerfd support but used on a system
without timerfd support the library would hang indefinitely on
completion of the first transfer, since timerfd functions were
being called unconditionally and the error returned when timerfd
was not being used caused a confused internal state.
Many thanks to Ivo Smits for looking into the issue, proposing
an initial solution, and helping with testing! Fixes #73.
Michael Plante [Sun, 12 Feb 2012 18:49:35 +0000 (13:49 -0500)]
Windows: Fix MSVC6 IDE warning on line continuation in libusb-1.0.rc
* libusb\libusb-1.0.rc(21): Could not find the file LIBUSB_RC.
* only shows up first time after opening workspace.
* shows up on either build or clean.
* not actually due to rc.exe, but prior to it.
* probably an IDE bug.
* does not show up when running an exported makefile.
Signed-off-by: Michael Plante <michael.plante@gmail.com>
Pete Batard [Sat, 7 Jan 2012 23:30:23 +0000 (23:30 +0000)]
Windows: Add Renesas SuperSpeed support for libusb_get_device_speed()
* tests conducted using a Renesas PCIE USB 3.0 controller and driver and
a mass storage USB 3.0 confirm that USB_NODE_CONNECTION_INFORMATION_EX
uses (undocumented) value 3 for SuperSpeed
Peter Stuge [Fri, 10 Feb 2012 17:06:43 +0000 (18:06 +0100)]
autogen.sh: Try to use libtoolize before trying glibtoolize
This helps on Mac OS X where an old glibtoolize is included in the
system and newer, manually installed, versions provide libtoolize.
See also http://marc.info/?m=
132490560131894
Peter Stuge [Wed, 8 Feb 2012 14:54:21 +0000 (15:54 +0100)]
Rename the lsusb example program to listdevs
This is intended to reduce confusion with the much more significant
lsusb utility which is part of the usbutils package.
Sean McBride [Fri, 9 Dec 2011 18:44:21 +0000 (13:44 -0500)]
core.c: Fix clang warning about useless store to a variable
Sean McBride [Fri, 9 Dec 2011 18:43:46 +0000 (13:43 -0500)]
Darwin: Clarify comments on event thread creation and termination
Sean McBride [Fri, 9 Dec 2011 18:43:46 +0000 (13:43 -0500)]
Darwin: Fix incorrect mutex protection of libusb_darwin_acfl global
Sean McBride [Fri, 9 Dec 2011 18:43:46 +0000 (13:43 -0500)]
Darwin: Use retained runloop variable instead of CFRunLoopGetCurrent()
Sean McBride [Fri, 9 Dec 2011 18:37:22 +0000 (13:37 -0500)]
Darwin: Fix libusb_init() and libusb_exit() refcount race condition
Use OSAtomicIncrement32Barrier() and OSAtomicDecrement32Barrier()
in darwin_init() and darwin_exit() to be thread safe.
Sean McBride [Fri, 9 Dec 2011 18:33:28 +0000 (13:33 -0500)]
threads_posix.c: Fix prototype warning by including threads_posix.h
Dave Camarillo [Fri, 23 Sep 2011 10:56:58 +0000 (11:56 +0100)]
Windows: Fix crash during enumeration with >= 64 connected devices
* indexes were outgrowing the unref_list array before realloc,
resulting in out of bound access and crash.
Pete Batard [Tue, 26 Oct 2010 15:31:13 +0000 (16:31 +0100)]
Windows MSVC6: Remove SetupAPI, AdvAPI32 and OLE32 dependencies
* this ensures that libusb dependent applications only need
to link with libusb on Windows
* (copied from Pete's msvc08 mods to msvc6 by Michael)
Pete Batard [Wed, 14 Dec 2011 02:18:10 +0000 (21:18 -0500)]
Windows: Output an error message on calls to libusb_get_pollfds()
Signed-off-by: Michael Plante <michael.plante@gmail.com>
Pete Batard [Fri, 4 Jun 2010 03:14:20 +0000 (22:14 -0500)]
io.c: Fix comment since pthreads isn't the only threading libusb uses
Michael Plante [Tue, 3 Aug 2010 00:59:12 +0000 (19:59 -0500)]
libusb.h: Cast in libusb_get_string_descriptor() to avoid MSVC6 warning
On MSVC6 bitwise OR promotes to int, causing the warning.
Michael Plante [Fri, 23 Dec 2011 22:50:21 +0000 (16:50 -0600)]
Windows: guid_to_string() is only discarded when macro-usbi_dbg used
* usbi_dbg encloses all references to guid_to_string
* MinGW/cygwin warn about an unused function, so the #if
squelches this warning
* MSVC6 uses a variadic function form of usbi_dbg instead
of a macro, so the compiler still "sees" guid_to_string
and it therefore needs to always be defined for MSVC6,
even if it's only a stub.
* So we define it if usbi_dbg is used OR if MSVC6 is used.
Signed-off-by: Michael Plante <michael.plante@gmail.com>
Pete Batard [Tue, 15 Nov 2011 01:11:12 +0000 (01:11 +0000)]
Windows: Fix undefined datatype 'LONG_PTR' in MSVC6
* issue reported by Elmi
Signed-off-by: Michael Plante <michael.plante@gmail.com>
Pete Batard [Sun, 13 Nov 2011 23:10:15 +0000 (23:10 +0000)]
Windows: Fix for MSVC6 preprocessor not accepting blank parameters
* unlike later iterations of Visual Studio, MSVC6 does not accept
blank parameters on macro calls [eg. CALL(a, ,b)]
* blank params were used with the DLL_DECLARE and DLL_LOAD macros
* issue reported by Elmi
Michael Plante [Tue, 26 Oct 2010 10:39:38 +0000 (11:39 +0100)]
Windows: Switch MSVC6 .dsp project files from MBCS to Unicode
* MBCS (which is different from UTF-8) only makes sense if
supporting Windows 95/98, which we don't
* (try to match Pete's vcproj changes in MSVC6)
Michael Plante [Wed, 14 Dec 2011 02:39:40 +0000 (21:39 -0500)]
Windows: Add missing MSVC6 lsusb.dsp project file
Signed-off-by: Michael Plante <michael.plante@gmail.com>
Martin Pieuchot [Mon, 30 Jan 2012 08:59:30 +0000 (09:59 +0100)]
OpenBSD backend
Xiaofan Chen [Fri, 13 Jan 2012 17:07:34 +0000 (18:07 +0100)]
configure.ac: Darwin: Move -lobjc from LIBS to PC_LIBS_PRIVATE
Since commit
40327cd134718475f6cec8935b856d4fdff2099c it is neccessary
to explicitly include -lobjc not only when linking libusb itself, but
also for programs linking statically against libusb. References #63.
See also http://marc.info/?m=
132505900202378
Xiaofan Chen [Fri, 13 Jan 2012 12:04:00 +0000 (13:04 +0100)]
examples: Link only with ../libusb/libusb-1.0.la and not with -lusb-1.0
Previous _LDFLAGS included both the freshly built libusb in ../libusb
and -lusb-1.0, where libtool would usually resolve the latter to an
already-installed libusb library in the system. The extra reference
to a second libusb library resulted in failure to build examples on
Mac OS X in some cases, and is plain wrong.
See also the thread at http://marc.info/?m=
132637593623667
Peter Stuge [Thu, 12 Jan 2012 09:34:55 +0000 (10:34 +0100)]
libusb/Makefile.am: Avoid recursive variables in .rc silent-rule
Not every make supports recursive variable expansion so some automake
versions complain about non-POSIX variable names ever since commit
70bec4a9f8ec28d36c731011fa24d37c74ad3523 which added support for
silent-rules in our rule to compile the Windows .rc file.
This commit removes the recursive variables and instead uses the
simple and generic GEN message and associated variable.
Ludovic Rousseau [Sat, 24 Sep 2011 16:27:54 +0000 (18:27 +0200)]
Core: Fix #122 warning: no previous prototype for ‘usbi_log_v’
Declare the usbi_log_v() function before using it.
Sean McBride [Fri, 14 Oct 2011 18:40:29 +0000 (14:40 -0400)]
Darwin: Set a name for the background thread on Mac OS X 10.6 and later
The call to pthread_setname_np() makes it easy to identify the
background thread in the Xcode debugger and in crash reports.
Peter Stuge [Thu, 22 Sep 2011 19:42:35 +0000 (21:42 +0200)]
libusb/Makefile.am: Add libusb-1.0.rc dependency on version.h
Peter Stuge [Thu, 22 Sep 2011 19:38:29 +0000 (21:38 +0200)]
libusb/Makefile.am: Make the libusb-1.0.rc rule support silent-rules
Peter Stuge [Thu, 22 Sep 2011 19:17:37 +0000 (21:17 +0200)]
configure.ac: Enable libtool support for Windows Resource language
Sean McBride [Mon, 19 Sep 2011 16:52:44 +0000 (12:52 -0400)]
descriptor.c: Use size_t for minor 64 bit compliance improvement
Fixes #121.
Sean McBride [Mon, 19 Sep 2011 16:42:33 +0000 (12:42 -0400)]
Darwin: Fix warnings about mismatched signed/unsigned compare
References #121.
Sean McBride [Mon, 19 Sep 2011 16:38:20 +0000 (12:38 -0400)]
Fix unused variable warnings when without timerfd and/or when on Darwin
References #121.
Ludovic Rousseau [Fri, 16 Sep 2011 16:07:56 +0000 (18:07 +0200)]
Correctly handle LIBUSB_TRANSFER_OVERFLOW in libusb_control_transfer()
sync.c: In function `libusb_control_transfer':
sync.c:122: warning: enumeration value `LIBUSB_TRANSFER_OVERFLOW' not
handled in switch
Fixes #120.
Pete Batard [Mon, 19 Sep 2011 15:01:37 +0000 (16:01 +0100)]
Windows: do not set altsetting 0 as part of libusb_release_interface()
* pointed out by Travis Robinson and Xiaofan Chen
* similar to a change advised by Alan Stern for the Linux kernel:
http://marc.info/?m=
122790204410765
Pete Batard [Mon, 19 Sep 2011 14:45:35 +0000 (15:45 +0100)]
Windows: fix communication with hubs
* issue reported by René Haunstrup in http://marc.info/?m=
130503019227814
Pete Batard [Mon, 19 Sep 2011 14:41:39 +0000 (15:41 +0100)]
Windows: add USB 3.0 controller support
* Windows 8, NEC/Renesas, TI, Fresco Logic, Etron, VIA, ASMedia
(some of which untested!)
* includes workaround for NEC/Renesas USB 3.0 root hubs