39 lines
1.6 KiB
Diff
39 lines
1.6 KiB
Diff
|
From 7c15f7083406a40314b818c508359cf1e6a7926d Mon Sep 17 00:00:00 2001
|
||
|
From: Benjamin Berg <bberg@redhat.com>
|
||
|
Date: Wed, 4 Dec 2019 13:07:10 +0100
|
||
|
Subject: [PATCH 089/181] uru4000: Fix control transfer request type
|
||
|
|
||
|
During porting the request type was accidentally changed from VENDOR to
|
||
|
DEVICE. Change the type back to VENDOR.
|
||
|
|
||
|
See: #205
|
||
|
---
|
||
|
libfprint/drivers/uru4000.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/libfprint/drivers/uru4000.c b/libfprint/drivers/uru4000.c
|
||
|
index 4385f29..5128a12 100644
|
||
|
--- a/libfprint/drivers/uru4000.c
|
||
|
+++ b/libfprint/drivers/uru4000.c
|
||
|
@@ -175,7 +175,7 @@ write_regs (FpImageDevice *dev, uint16_t first_reg,
|
||
|
transfer->short_is_error = TRUE;
|
||
|
fpi_usb_transfer_fill_control (transfer,
|
||
|
G_USB_DEVICE_DIRECTION_HOST_TO_DEVICE,
|
||
|
- G_USB_DEVICE_REQUEST_TYPE_STANDARD,
|
||
|
+ G_USB_DEVICE_REQUEST_TYPE_VENDOR,
|
||
|
G_USB_DEVICE_RECIPIENT_DEVICE,
|
||
|
USB_RQ, first_reg, 0,
|
||
|
num_regs);
|
||
|
@@ -202,7 +202,7 @@ read_regs (FpImageDevice *dev, uint16_t first_reg,
|
||
|
|
||
|
fpi_usb_transfer_fill_control (transfer,
|
||
|
G_USB_DEVICE_DIRECTION_DEVICE_TO_HOST,
|
||
|
- G_USB_DEVICE_REQUEST_TYPE_STANDARD,
|
||
|
+ G_USB_DEVICE_REQUEST_TYPE_VENDOR,
|
||
|
G_USB_DEVICE_RECIPIENT_DEVICE,
|
||
|
USB_RQ, first_reg, 0, num_regs);
|
||
|
fpi_usb_transfer_submit (transfer, CTRL_TIMEOUT, NULL, callback, user_data);
|
||
|
--
|
||
|
2.24.1
|
||
|
|