diff -Nru libfprint-1.94.3+tod1/debian/changelog libfprint-1.94.3+tod1/debian/changelog --- libfprint-1.94.3+tod1/debian/changelog 2023-09-07 23:20:37.000000000 +0800 +++ libfprint-1.94.3+tod1/debian/changelog 2024-03-15 17:44:12.000000000 +0800 @@ -1,3 +1,9 @@ +libfprint (1:1.94.3+tod1-0ubuntu2~22.04.07) jammy; urgency=medium + + * d/p/elanmoc-add-PID-0x0c8c-0x0c8d.patch (LP: #2058013) + + -- Bin Li Fri, 15 Mar 2024 17:44:12 +0800 + libfprint (1:1.94.3+tod1-0ubuntu2~22.04.06) jammy; urgency=medium [ Dirk Su ] diff -Nru libfprint-1.94.3+tod1/debian/patches/elanmoc-add-PID-0x0c8c-0x0c8d.patch libfprint-1.94.3+tod1/debian/patches/elanmoc-add-PID-0x0c8c-0x0c8d.patch --- libfprint-1.94.3+tod1/debian/patches/elanmoc-add-PID-0x0c8c-0x0c8d.patch 1970-01-01 08:00:00.000000000 +0800 +++ libfprint-1.94.3+tod1/debian/patches/elanmoc-add-PID-0x0c8c-0x0c8d.patch 2024-03-15 17:44:12.000000000 +0800 @@ -0,0 +1,61 @@ +From: Johnny Li +Date: Mon, 25 Jul 2022 14:11:37 +0800 +Subject: [PATCH] elanmoc: add PID 0x0c8c & 0x0c8d + Support Elan fp device [04F3:0C8C] and [04F3:0C8D] +Origin: backport, https://gitlab.freedesktop.org/libfprint/libfprint/-/merge_requests/374 +Bug: https://bugs.launchpad.net/ubuntu/+source/libfprint/+bug/2058013 +Reviewed-By: Bin Li +Last-Update: 2024-03-15 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: libfprint/data/autosuspend.hwdb +=================================================================== +--- libfprint.orig/data/autosuspend.hwdb ++++ libfprint/data/autosuspend.hwdb +@@ -144,8 +144,10 @@ usb:v04F3p0C58* + # Supported by libfprint driver elanmoc + usb:v04F3p0C7D* + usb:v04F3p0C7E* +-usb:v04F3p0C88* + usb:v04F3p0C82* ++usb:v04F3p0C88* ++usb:v04F3p0C8C* ++usb:v04F3p0C8D* + usb:v04F3p0C99* + ID_AUTOSUSPEND=1 + ID_PERSIST=0 +Index: libfprint/libfprint/drivers/elanmoc/elanmoc.c +=================================================================== +--- libfprint.orig/libfprint/drivers/elanmoc/elanmoc.c ++++ libfprint/libfprint/drivers/elanmoc/elanmoc.c +@@ -27,8 +27,10 @@ G_DEFINE_TYPE (FpiDeviceElanmoc, fpi_dev + static const FpIdEntry id_table[] = { + { .vid = 0x04f3, .pid = 0x0c7d, }, + { .vid = 0x04f3, .pid = 0x0c7e, }, +- { .vid = 0x04f3, .pid = 0x0c88, }, + { .vid = 0x04f3, .pid = 0x0c82, }, ++ { .vid = 0x04f3, .pid = 0x0c88, }, ++ { .vid = 0x04f3, .pid = 0x0c8c, }, ++ { .vid = 0x04f3, .pid = 0x0c8d, }, + { .vid = 0x04f3, .pid = 0x0c99, }, + { .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */ + }; +@@ -1081,10 +1083,18 @@ elanmoc_open (FpDevice *device) + productid = g_usb_device_get_pid (fpi_device_get_usb_device (device)); + switch (productid) + { ++ case 0x0c8c: ++ self->max_moc_enroll_time = 11; ++ break; ++ + case 0x0c99: + self->max_moc_enroll_time = 14; + break; + ++ case 0x0c8d: ++ self->max_moc_enroll_time = 17; ++ break; ++ + default: + self->max_moc_enroll_time = ELAN_MOC_ENROLL_TIMES; + break; diff -Nru libfprint-1.94.3+tod1/debian/patches/series libfprint-1.94.3+tod1/debian/patches/series --- libfprint-1.94.3+tod1/debian/patches/series 2023-09-07 23:20:37.000000000 +0800 +++ libfprint-1.94.3+tod1/debian/patches/series 2024-03-15 17:44:12.000000000 +0800 @@ -9,3 +9,4 @@ elanmoc-add-PID-0x0c99.patch goodixmoc-Add-PID-0x633C.patch synaptics-fix-enroll_identify-problem-after-user-reset-da.patch +elanmoc-add-PID-0x0c8c-0x0c8d.patch