add goodix 6512 support

This commit is contained in:
2024-07-09 16:34:27 -05:00
parent 4f101d393e
commit 6f9284c919
2 changed files with 30 additions and 4 deletions

24
goodix-6512.patch Normal file
View File

@@ -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 */
};

View File

@@ -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