Hello community,

here is the log from the commit of package libfprint for openSUSE:Factory 
checked in at 2013-05-27 09:51:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libfprint (Old)
 and      /work/SRC/openSUSE:Factory/.libfprint.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libfprint"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libfprint/libfprint.changes      2013-04-17 
18:22:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libfprint.new/libfprint.changes 2013-05-27 
09:51:58.000000000 +0200
@@ -1,0 +2,5 @@
+Mon May 20 16:42:41 UTC 2013 - [email protected]
+
+- upeke2: Add support for 147e:2020 ID (fdo#59320) 
+
+-------------------------------------------------------------------

New:
----
  libfprint-upeke2_add_147e_2020_id_support.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libfprint.spec ++++++
--- /var/tmp/diff_new_pack.w2N5Jn/_old  2013-05-27 09:51:59.000000000 +0200
+++ /var/tmp/diff_new_pack.w2N5Jn/_new  2013-05-27 09:51:59.000000000 +0200
@@ -26,6 +26,7 @@
 Url:            http://www.freedesktop.org/wiki/Software/fprint
 Source0:        %{name}-%{version}.tar.xz
 Patch17:        libfprint-upeke2_6stage.diff
+Patch18:        libfprint-upeke2_add_147e_2020_id_support.patch
 Patch21:        libfprint-install_examples.patch
 Source99:       baselibs.conf
 BuildRequires:  automake
@@ -81,6 +82,7 @@
 %prep
 %setup -q
 %patch17
+%patch18 -p1
 %patch21
 
 %build

++++++ libfprint-upeke2_add_147e_2020_id_support.patch ++++++
>From 3b3679c900f6739f7067f8d720e15d548bb39be9 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <[email protected]>
Date: Sun, 13 Jan 2013 13:43:38 +0000
Subject: upeke2: Add support for 147e:2020 ID

https://bugs.freedesktop.org/show_bug.cgi?id=59320
---
diff --git a/libfprint/drivers/upeke2.c b/libfprint/drivers/upeke2.c
index ed8f43d..a7db54d 100644
--- a/libfprint/drivers/upeke2.c
+++ b/libfprint/drivers/upeke2.c
@@ -46,6 +46,11 @@
 #define MSG_READ_BUF_SIZE 0x40
 #define MAX_DATA_IN_READ_BUF (MSG_READ_BUF_SIZE - 9)
 
+enum {
+        UPEKE2_2016,
+        UPEKE2_2020,
+};
+
 struct upeke2_dev {
        gboolean enroll_passed;
        gboolean first_verify_iteration;
@@ -848,8 +853,10 @@ static struct fpi_ssm *deinitsm_new(struct fp_dev *dev)
 
 static int discover(struct libusb_device_descriptor *dsc, uint32_t *devtype)
 {
-       /* Revision 2 is what we're interested in */
-       if (dsc->bcdDevice == 2)
+       if (dsc->idProduct == 0x2016 && dsc->bcdDevice == 2)
+               return 1;
+
+       if (dsc->idProduct == 0x2020 && dsc->bcdDevice == 1)
                return 1;
 
        return 0;
@@ -1453,7 +1460,8 @@ static int verify_stop(struct fp_dev *dev, gboolean 
iterating)
 }
 
 static const struct usb_id id_table[] = {
-       { .vendor = 0x147e, .product = 0x2016 },
+       { .vendor = 0x147e, .product = 0x2016, .driver_data = UPEKE2_2016 },
+       { .vendor = 0x147e, .product = 0x2020, .driver_data = UPEKE2_2020 },
        { 0, 0, 0, }, /* terminating entry */
 };
 
--
cgit v0.9.0.2-2-gbebe
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to