Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libfprint
libfprint
Commits
75655629
Commit
75655629
authored
Dec 21, 2021
by
Matthew Mirvish
Browse files
elanspi: Adjust register tables (fixes #438)
New values taken from a newer version of the official driver.
parent
999bca07
Pipeline
#471117
passed with stages
in 9 minutes and 48 seconds
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
libfprint/drivers/elanspi.h
View file @
75655629
...
...
@@ -97,7 +97,37 @@ static const struct elanspi_reg_entry elanspi_calibration_table_default[] = {
{
0xff
,
0xff
}
};
static
const
struct
elanspi_reg_entry
elanspi_calibration_table_id567
[]
=
{
static
const
struct
elanspi_reg_entry
elanspi_calibration_table_id6
[]
=
{
{
0x2A
,
0x07
},
{
0x1
,
0x00
},
{
0x2
,
0x5f
},
{
0x3
,
0x00
},
{
0x4
,
0x5f
},
{
0x5
,
0x60
},
{
0x6
,
0xC0
},
{
0x7
,
0x80
},
{
0x8
,
0x04
},
{
0xA
,
0x97
},
{
0xB
,
0x72
},
{
0xC
,
0x69
},
{
0xF
,
0x2A
},
{
0x11
,
0x2A
},
{
0x13
,
0x27
},
{
0x15
,
0x67
},
{
0x18
,
0x04
},
{
0x21
,
0x20
},
{
0x22
,
0x36
},
{
0x29
,
0x02
},
{
0x2A
,
0x03
},
{
0x2A
,
0x5F
},
{
0x2B
,
0xC0
},
{
0x2C
,
0x10
},
{
0x2E
,
0xFF
},
{
0xff
,
0xff
}
};
static
const
struct
elanspi_reg_entry
elanspi_calibration_table_id57
[]
=
{
{
0x2A
,
0x07
},
{
0x5
,
0x60
},
{
0x6
,
0xC0
},
...
...
@@ -143,9 +173,9 @@ static const struct elanspi_regtable elanspi_calibration_table_old = {
.
other
=
elanspi_calibration_table_default
,
.
entries
=
{
{
.
sid
=
0x0
,
.
table
=
elanspi_calibration_table_id0
},
{
.
sid
=
0x5
,
.
table
=
elanspi_calibration_table_id5
6
7
},
{
.
sid
=
0x6
,
.
table
=
elanspi_calibration_table_id
567
},
{
.
sid
=
0x7
,
.
table
=
elanspi_calibration_table_id5
6
7
},
{
.
sid
=
0x5
,
.
table
=
elanspi_calibration_table_id57
},
{
.
sid
=
0x6
,
.
table
=
elanspi_calibration_table_id
6
},
{
.
sid
=
0x7
,
.
table
=
elanspi_calibration_table_id57
},
{
.
sid
=
0x0
,
.
table
=
NULL
}
}
};
...
...
tests/elanspi/capture.ioctl
View file @
75655629
...
...
@@ -24,6 +24,10 @@ TW 8c62
TW 805a
TW 04
TW aa07
TW 8100
TW 825f
TW 8300
TW 845f
TW 8560
TW 86c0
TW 8780
...
...
@@ -38,8 +42,11 @@ TW 9567
TW 9804
TW a120
TW a236
TW a902
TW aa03
TW aa5f
TW abc0
TW ac10
TW aeff
TW 01
TW 03ff
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment