Skip to content

Commit

Permalink
Merge pull request #579 from nomis52/master
Browse files Browse the repository at this point in the history
Remove the override that prevents Sync Bulk Transfers from working in As...
  • Loading branch information
nomis52 committed Dec 21, 2014
2 parents b3836a9 + 33d92d2 commit 626d2fb
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions plugins/usbdmx/LibUsbAdaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,22 @@ int AsyncronousLibUsbAdaptor::ControlTransfer(
OLA_UNUSED unsigned char *data,
OLA_UNUSED uint16_t wLength,
OLA_UNUSED unsigned int timeout) {
OLA_WARN << "libusb_control_transfer in an AsyncronousLibUsbAdaptor";
return LIBUSB_ERROR_NOT_SUPPORTED;
OLA_DEBUG << "libusb_control_transfer in an AsyncronousLibUsbAdaptor";
return BaseLibUsbAdaptor::ControlTransfer(dev_handle, bmRequestType,
bRequest, wValue, wIndex, data,
wLength, timeout);
}

int AsyncronousLibUsbAdaptor::BulkTransfer(
OLA_UNUSED struct libusb_device_handle *dev_handle,
OLA_UNUSED unsigned char endpoint,
OLA_UNUSED unsigned char *data,
OLA_UNUSED int length,
OLA_UNUSED int *transferred,
OLA_UNUSED unsigned int timeout) {
OLA_WARN << "libusb_bulk_transfer in an AsyncronousLibUsbAdaptor";
return LIBUSB_ERROR_NOT_SUPPORTED;
struct libusb_device_handle *dev_handle,
unsigned char endpoint,
unsigned char *data,
int length,
int *transferred,
unsigned int timeout) {
OLA_DEBUG << "libusb_bulk_transfer in an AsyncronousLibUsbAdaptor";
return BaseLibUsbAdaptor::BulkTransfer(dev_handle, endpoint, data, length,
transferred, timeout);
}

int AsyncronousLibUsbAdaptor::InterruptTransfer(
Expand All @@ -373,8 +376,9 @@ int AsyncronousLibUsbAdaptor::InterruptTransfer(
OLA_UNUSED int length,
OLA_UNUSED int *actual_length,
OLA_UNUSED unsigned int timeout) {
OLA_WARN << "libusb_interrupt_transfer in an AsyncronousLibUsbAdaptor";
return LIBUSB_ERROR_NOT_SUPPORTED;
OLA_DEBUG << "libusb_interrupt_transfer in an AsyncronousLibUsbAdaptor";
return BaseLibUsbAdaptor::InterruptTransfer(dev_handle, endpoint, data,
length, actual_length, timeout);
}
} // namespace usbdmx
} // namespace plugin
Expand Down

0 comments on commit 626d2fb

Please sign in to comment.