Povilas Kanapickas
05ed63fa34
genesys: Move setup of read buffer to a single function
2019-09-13 11:36:54 +03:00
Povilas Kanapickas
c59f9a037b
Merge branch 'genesys-default-scan-method' into 'master'
...
genesys: Add a way to specify default scan method
See merge request sane-project/backends!173
2019-09-27 20:55:51 +00:00
Povilas Kanapickas
2f3d9e9d76
genesys: Don't crash when default scan method is not supported
2019-09-12 23:48:16 +03:00
Povilas Kanapickas
9b7ab93727
genesys: Add unit test for genesys_fill_segmented_buffer()
2019-09-12 22:39:22 +03:00
Povilas Kanapickas
98320f5b81
genesys: Don't overflow in multiply_by_depth_ceil
2019-09-12 22:21:51 +03:00
Povilas Kanapickas
eb0882ecc4
genesys: Use common code path to compute session optical_pixels_raw
2019-09-12 22:11:20 +03:00
Povilas Kanapickas
c0e465784e
genesys: Deduplicate different get_sensor_profile implementations
2019-09-12 22:40:54 +03:00
Povilas Kanapickas
a0cead1cd5
genesys: Pass asic type to sanei_genesys_get_bulk_max_size()
2019-09-12 20:28:45 +03:00
Povilas Kanapickas
9915608309
genesys: Extract multiplication by depth to a separate function
2019-09-12 19:49:50 +03:00
Povilas Kanapickas
ba3013b1aa
genesys: Handle full sensor scans on gl841 consistently to other chips
2019-08-24 10:13:43 +03:00
Povilas Kanapickas
a2ade50870
genesys: Ensure that resolution is set to a supported one at high-level
...
Previously we relied on low-level implementation to detect when the
requested resolution is higher than one supported by the scanner and
seamlessly patch around so that the high-level code does not notice.
This complicates the low level implementation and results to duplicate
code.
2019-08-18 11:13:01 +03:00
Povilas Kanapickas
5532f2f277
genesys: Add channel count to the parameters that identify a sensor
2019-08-17 11:51:35 +03:00
Povilas Kanapickas
86ac877d82
genesys: Remove unused code
2019-08-17 11:05:38 +03:00
Povilas Kanapickas
f019f9e7b8
genesys: Don't modify sensor in *_led_calibration()
2019-08-17 11:05:35 +03:00
Povilas Kanapickas
92412a90b2
genesys: Create compute_session() for common session computation
2019-08-17 11:11:14 +03:00
Povilas Kanapickas
53d447b6dc
genesys: Move GL846 sensor profiles to a common sensor array
2019-08-17 11:02:39 +03:00
Povilas Kanapickas
4978eceda3
genesys: Move GL847 sensor profiles to a common sensor array
2019-08-17 11:02:38 +03:00
Povilas Kanapickas
63cc11bce1
genesys: Move GL124 sensor profiles to a common sensor array
2019-08-17 11:02:37 +03:00
Povilas Kanapickas
562f900337
Merge branch 'genesys-override-dpiset' into 'master'
...
genesys: Implement a way to override dpiset
See merge request sane-project/backends!130
2019-08-31 12:54:14 +00:00
Povilas Kanapickas
3a1163480a
genesys: Store calibration data using correct type internally
2019-08-17 10:53:55 +03:00
Povilas Kanapickas
458e31a0c0
genesys: Extract setting of DPIHW to a separate function
2019-08-17 10:21:02 +03:00
Povilas Kanapickas
6912400cf4
genesys: Move motor profile tables to a single file
2019-08-04 18:21:08 +03:00
Povilas Kanapickas
6592692448
genesys: Compile genesys_devices.cc as a separate translation unit
2019-08-04 18:21:06 +03:00
Povilas Kanapickas
8cb6130cfe
genesys: Cleanup the gpo setup
2019-08-04 14:01:50 +03:00
Povilas Kanapickas
b5ff3b4f43
Merge branch 'genesys-cleanup-motors' into 'master'
...
genesys: Cleanup motor definitions
See merge request sane-project/backends!121
2019-08-10 12:23:20 +00:00
Povilas Kanapickas
ea602f7ebc
genesys: Rewrite and document sanei_genesys_calculate_zmod()
2019-08-04 12:01:51 +03:00
Povilas Kanapickas
6f20e6d341
genesys: Use std::vector for the motor slope tables
2019-08-04 12:01:50 +03:00
Povilas Kanapickas
510e8123f3
genesys: Remove support for multiple motor power modes
2019-08-04 12:01:49 +03:00
Povilas Kanapickas
239eab6ea6
genesys: Simplify motor setup to make it easier to expand
2019-08-04 12:01:48 +03:00
Povilas Kanapickas
306b160f00
genesys: Pass OPTICAL_FLAG_DISABLE_SHADING flag via session
2019-08-04 10:52:57 +03:00
Povilas Kanapickas
86d4828ece
genesys: Pass OPTICAL_FLAG_DISABLE_GAMMA flag via session
2019-08-04 10:52:56 +03:00
Povilas Kanapickas
d503701fb7
genesys: Pass OPTICAL_FLAG_USE_XPA flag via session
2019-08-04 10:52:55 +03:00
Povilas Kanapickas
773170af09
genesys: Pass OPTICAL_FLAG_DISABLE_LAMP flag via session
2019-08-04 10:52:54 +03:00
Povilas Kanapickas
8618a49182
genesys: Pass OPTICAL_FLAG_STAGGER flag via session
2019-08-04 10:52:53 +03:00
Povilas Kanapickas
a4b551be0c
genesys: Pass OPTICAL_FLAG_ENABLE_LEDADD flag via session
2019-08-04 10:52:52 +03:00
Povilas Kanapickas
e5a90e8005
genesys: Update all sensors when searching for reference point
2019-08-04 02:48:29 +03:00
Povilas Kanapickas
91b20fb268
genesys: Make sanei_genesys_search_reference_point() non-destructive
2019-08-04 02:48:28 +03:00
Povilas Kanapickas
d0dbfa6ec3
genesys: Print traces of more data
2019-08-04 02:48:27 +03:00
Povilas Kanapickas
f4401d501f
genesys: Make asic type an enum
2019-07-27 05:12:30 +03:00
Povilas Kanapickas
d0ed3795f6
genesys: Remove unused code
2019-07-27 05:12:27 +03:00
Povilas Kanapickas
cdb14d9fef
genesys: Remove uses of sanei_genesys_set_reg_from_set()
2019-07-21 18:41:50 +03:00
Povilas Kanapickas
36714a7810
genesys: Remove uses of sanei_genesys_read_reg_from_set()
2019-07-21 18:41:49 +03:00
Povilas Kanapickas
e6dbfd64a3
genesys: Remove uses of sanei_genesys_set_triple()
2019-07-21 18:41:48 +03:00
Povilas Kanapickas
08c98e13b2
genesys: Remove uses of sanei_genesys_set_double()
2019-07-21 18:41:47 +03:00
Povilas Kanapickas
98546ecff0
genesys: Remove uses of sanei_genesys_get_triple()
2019-07-21 18:41:46 +03:00
Povilas Kanapickas
fa9fcc31a1
genesys: Remove uses of sanei_genesys_get_double()
2019-07-21 18:41:45 +03:00
Povilas Kanapickas
16c55bf330
genesys: Init cmd_set directly instead of going through a function
2019-08-02 22:39:05 +03:00
Povilas Kanapickas
035951933b
Merge branch 'genesys-physical-register-state' into 'master'
...
genesys: Cache physical register state
See merge request sane-project/backends!111
2019-08-09 10:28:10 +00:00
Povilas Kanapickas
faab7b02e0
genesys: Cache physical register state in the device on bulk writes
2019-08-02 22:39:00 +03:00
Povilas Kanapickas
7836ea5778
genesys: Remove bulk_write_register from the cmd_set structures
2019-08-02 22:38:59 +03:00