From c001ea8dbfd3383b9728231d0b9620d22ff4d151 Mon Sep 17 00:00:00 2001 From: Bartosz T Date: Fri, 12 Jun 2015 09:02:56 +0200 Subject: [PATCH] adapt driver to 138a:0010 --- libfprint/drivers/vfs5011.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libfprint/drivers/vfs5011.c b/libfprint/drivers/vfs5011.c index 38a9ef9..84a3eb2 100644 --- a/libfprint/drivers/vfs5011.c +++ b/libfprint/drivers/vfs5011.c @@ -350,7 +350,7 @@ int vfs5011_rescale_image(unsigned char *image, int input_lines, /* Number of output lines per distance between two scanners */ enum { RESOLUTION = 10, - MEDIAN_FILTER_SIZE = 13, + MEDIAN_FILTER_SIZE = 35, MAX_OFFSET = 10, GOOD_OFFSETS_CRITERION = 20, GOOD_OFFSETS_THRESHOLD = 3 @@ -470,8 +470,8 @@ static void capture_init(struct vfs5011_data *data, int max_captured, static int process_chunk(struct vfs5011_data *data, int transferred) { enum { - DEVIATION_THRESHOLD = 15*15, - DIFFERENCE_THRESHOLD = 600, + DEVIATION_THRESHOLD = 40*40, + DIFFERENCE_THRESHOLD = 2000, STOP_CHECK_LINES = 50 }; @@ -578,7 +578,7 @@ static int capture_chunk_async(struct vfs5011_data *data, nline, data->lines_recorded); enum { DEVIATION_THRESHOLD = 15*15, - DIFFERENCE_THRESHOLD = 600, + DIFFERENCE_THRESHOLD = 300, STOP_CHECK_LINES = 50 }; @@ -993,6 +993,7 @@ static void dev_deactivate(struct fp_img_dev *dev) static const struct usb_id id_table[] = { { .vendor = 0x138a, .product = 0x0011 /* vfs5011 */ }, + { .vendor = 0x138a, .product = 0x0010 /* vfs5011 */ }, { .vendor = 0x138a, .product = 0x0017 /* Validity device from Lenovo T440 laptops */ }, { .vendor = 0x138a, .product = 0x0018 /* one more Validity device */ }, { 0, 0, 0, }, -- 1.9.1