Files
libfprint/debian/patches/elanmoc-add-PID-0x0c82.patch
T
Marco Trevisan (Treviño) 3dd06634d5 elanmoc: Add support for more supported PIDs
And include more tests for specific cases.

LP: #1989314
2022-10-13 13:50:55 +02:00

34 lines
1.0 KiB
Diff

From: ArronYen <arron.yen@emc.com.tw>
Date: Wed, 2 Mar 2022 10:43:20 +0800
Subject: elanmoc: add PID 0x0c82
---
data/autosuspend.hwdb | 1 +
libfprint/drivers/elanmoc/elanmoc.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb
index 91a14eb..d55ed3e 100644
--- a/data/autosuspend.hwdb
+++ b/data/autosuspend.hwdb
@@ -144,6 +144,7 @@ usb:v04F3p0C58*
# Supported by libfprint driver elanmoc
usb:v04F3p0C7D*
usb:v04F3p0C7E*
+usb:v04F3p0C82*
ID_AUTOSUSPEND=1
ID_PERSIST=0
diff --git a/libfprint/drivers/elanmoc/elanmoc.c b/libfprint/drivers/elanmoc/elanmoc.c
index 69700a0..3185ee7 100644
--- a/libfprint/drivers/elanmoc/elanmoc.c
+++ b/libfprint/drivers/elanmoc/elanmoc.c
@@ -27,6 +27,7 @@ G_DEFINE_TYPE (FpiDeviceElanmoc, fpi_device_elanmoc, FP_TYPE_DEVICE)
static const FpIdEntry id_table[] = {
{ .vid = 0x04f3, .pid = 0x0c7d, },
{ .vid = 0x04f3, .pid = 0x0c7e, },
+ { .vid = 0x04f3, .pid = 0x0c82, },
{ .vid = 0, .pid = 0, .driver_data = 0 }, /* terminating entry */
};