From 6f9284c919e70f52c4550b5ec3b45ed985dde6e1 Mon Sep 17 00:00:00 2001 From: Craig Cabrey Date: Tue, 9 Jul 2024 16:34:27 -0500 Subject: [PATCH] add goodix 6512 support --- goodix-6512.patch | 24 ++++++++++++++++++++++++ libfprint.spec | 10 ++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 goodix-6512.patch diff --git a/goodix-6512.patch b/goodix-6512.patch new file mode 100644 index 0000000..93fbda0 --- /dev/null +++ b/goodix-6512.patch @@ -0,0 +1,24 @@ +diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb +index d27813b..8fee711 100644 +--- a/data/autosuspend.hwdb ++++ b/data/autosuspend.hwdb +@@ -209,6 +209,7 @@ usb:v27C6p6594* + usb:v27C6p659A* + usb:v27C6p659C* + usb:v27C6p6A94* ++usb:v27C6p6512* + ID_AUTOSUSPEND=1 + ID_PERSIST=0 + +diff --git a/libfprint/drivers/goodixmoc/goodix.c b/libfprint/drivers/goodixmoc/goodix.c +index 24d491d..9122efb 100644 +--- a/libfprint/drivers/goodixmoc/goodix.c ++++ b/libfprint/drivers/goodixmoc/goodix.c +@@ -1636,6 +1636,7 @@ static const FpIdEntry id_table[] = { + { .vid = 0x27c6, .pid = 0x659A, }, + { .vid = 0x27c6, .pid = 0x659C, }, + { .vid = 0x27c6, .pid = 0x6A94, }, ++ { .vid = 0x27c6, .pid = 0x6512, }, + { .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */ + }; + diff --git a/libfprint.spec b/libfprint.spec index 491af24..f77e264 100644 --- a/libfprint.spec +++ b/libfprint.spec @@ -1,12 +1,12 @@ Name: libfprint -Version: 1.94.6 +Version: 1.94.6.mr494 Release: %autorelease Summary: Toolkit for fingerprint scanner License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/fprint/libfprint -Source0: https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v%{version}/libfprint-v%{version}.tar.gz +Source0: https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v1.94.6/libfprint-v1.94.6.tar.gz ExcludeArch: s390 s390x BuildRequires: meson @@ -27,19 +27,21 @@ BuildRequires: gobject-introspection-devel BuildRequires: python3-cairo python3-gobject cairo-devel BuildRequires: umockdev >= 0.13.2 +Patch0: goodix-6512.patch + %description libfprint offers support for consumer fingerprint reader devices. %package devel Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}%{?_isa} = 1.94.6-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -S git -n libfprint-v%{version} +%autosetup -S git -n libfprint-v1.94.6 %build # Include the virtual image driver for integration tests