Povilas Kanapickas
27aea235b4
genesys: Rename slow_back_home() to move_back_home()
2019-12-01 10:43:10 +02:00
Povilas Kanapickas
35c8cb84f8
genesys: Extract slow_back_home_ta() to common code
2019-12-01 10:43:09 +02:00
Povilas Kanapickas
5b7c19a7d5
genesys: Reduce duplication of *_stop_action() across the ASICs
2019-12-01 10:08:59 +02:00
Povilas Kanapickas
9e092f9d67
genesys: Extract scanner_is_motor_stopped() to use across the asics
2019-12-01 10:08:58 +02:00
Povilas Kanapickas
c2863d6ba1
genesys: Fix inconsistent check of scanner status in *_stop_action()
2019-12-01 10:08:57 +02:00
Povilas Kanapickas
a90ab552a9
genesys: Extract scanner_stop_action_no_move() to use across the asics
2019-12-01 10:08:56 +02:00
Povilas Kanapickas
6913513dc2
genesys: Extract regs_set_optical_off() to use across the ASICs
2019-12-01 10:08:55 +02:00
Povilas Kanapickas
052aa01626
genesys: Reduce duplication of *_feed() across different ASICs
2019-12-01 10:08:54 +02:00
Povilas Kanapickas
e435036b97
genesys: Use single function to set exposure on all ASICs
2019-12-01 10:08:53 +02:00
Louis Lagendijk
34922d9574
pixma: fixed MB5400 ADF scan. MB5400 works upto 1200DPI and with ADF or ADF-duplex
2019-12-04 00:56:37 +01:00
Louis Lagendijk
46eacadc78
pixma_bjnp.c: fix parsing of mfnp in pixma config file
2019-12-03 22:02:32 +01:00
Povilas Kanapickas
f98bec2afb
genesys: Use full scan initialization in slow_back_home_ta()
2019-11-30 19:19:21 +02:00
Povilas Kanapickas
66a95875d4
genesys: Remove duplicate operation a register
...
The same value is set just several lines above.
2019-11-30 19:19:20 +02:00
Povilas Kanapickas
4743a02353
genesys: Remove duplicate operation on a register
...
init_regs_for_scan_session() already sets the value of the register to
what we expect.
2019-11-30 19:19:19 +02:00
Povilas Kanapickas
8aee1f0982
genesys: Expose slow_back_home_ta() to the cmd set
2019-11-30 19:19:18 +02:00
Povilas Kanapickas
6b4be81e90
Merge branch 'genesys-motors-refactor' into 'master'
...
genesys: Motors refactor
See merge request sane-project/backends!250
2019-11-30 23:40:52 +00:00
Louis Lagendijk
072487ee7b
pixma: made backend obey local_only setting in sane_get_devices
2019-11-30 23:51:03 +01:00
Povilas Kanapickas
97ae3fc946
genesys: Reduce duplication of slow_back_home() across different asics
2019-11-30 19:06:52 +02:00
Povilas Kanapickas
cba6086ce7
genesys: Expose init_regs_for_scan_session() to the cmd set
2019-11-30 19:06:51 +02:00
Povilas Kanapickas
79b4d1560a
genesys: Remove no longer needed global settings modification
2019-11-30 19:06:50 +02:00
Povilas Kanapickas
a355df168a
genesys: Expose update_home_sensor_gpio() in the cmd set
2019-11-30 19:06:49 +02:00
Povilas Kanapickas
326733a479
genesys: Simplify slow_back_home() on gl646
2019-11-30 19:06:48 +02:00
Povilas Kanapickas
98dbd206ee
genesys: Reduce duplication of slope upload on gl646
2019-11-30 19:06:47 +02:00
Povilas Kanapickas
6626453804
genesys: Reduce duplication of scanner status printing
2019-11-30 19:06:46 +02:00
Povilas Kanapickas
df8a411de3
genesys: Extract reliable reading of home sensor to separate function
2019-11-30 19:06:45 +02:00
Povilas Kanapickas
2ca325c638
genesys: Simplify scanner status handling
2019-11-30 19:06:44 +02:00
Povilas Kanapickas
7385e0d305
genesys: Simplify get_gain4_bit() implementation
2019-11-30 19:06:43 +02:00
Povilas Kanapickas
3ada79c35a
genesys: Move motor direction register adjustment to low level functions
2019-11-30 19:06:42 +02:00
Povilas Kanapickas
50149e9064
genesys: Use enum class for motor flags
2019-11-30 19:06:41 +02:00
Povilas Kanapickas
837ec33c7f
genesys: Make scan flags an enum
2019-11-23 12:38:51 +02:00
Povilas Kanapickas
05e3091d5f
genesys: Remove duplication of motor startup
2019-11-23 12:38:50 +02:00
Povilas Kanapickas
9cd373fe6c
genesys: Return MotorSlopeTable out of sanei_genesys_slope_table()
2019-11-23 12:38:49 +02:00
Povilas Kanapickas
63b0366b43
genesys: Store motor profile tables in std::vector
2019-11-23 12:38:48 +02:00
Povilas Kanapickas
cbe45396fe
genesys: Move static initialization functionality to a separate file
2019-11-23 12:38:47 +02:00
Povilas Kanapickas
f6f27e0539
genesys: Implement building of motor tables based on physical slope
2019-11-23 12:38:46 +02:00
Povilas Kanapickas
34bba237b5
genesys: Don't select motor profile twice during setup of same scan
2019-11-23 12:38:45 +02:00
Povilas Kanapickas
b43a21d25a
genesys: Add new motor slope type
2019-11-23 12:38:44 +02:00
Povilas Kanapickas
ddcce5295f
genesys: Use StepType enum more
2019-11-23 12:38:42 +02:00
Povilas Kanapickas
c6784d2f1d
genesys: Simplify API of sanei_genesys_create_slope_table3()
2019-11-23 12:38:41 +02:00
Povilas Kanapickas
ce59a69224
genesys: Record motor slope tables in the config test
2019-11-23 12:38:40 +02:00
Povilas Kanapickas
d8e8899a76
genesys: Remove unused code
2019-11-23 12:38:39 +02:00
Povilas Kanapickas
acc5fd318c
genesys: Replace unneeded uses of macros with enums
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
10662d2973
genesys: Remove uses of SETREG and INITREG macros
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
185fdcc9ce
genesys: Replace defines with constants in register lists
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
6d9259bd48
genesys: Put chip-specific functionality into namespaces
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
f366073b08
genesys: Add initial support for flatbed mode on Canon 4400F
2019-11-23 14:54:10 +02:00
Alex Belkin
7e7f02773e
xerox_mfp: Fix crash in test mode
...
Do not decode JPEG into output buffer if it's NULL.
Also, I add assert() for `dev->decData` size, which is never
checked anywhere. Thanks to Michal Nowak for report and
testing. Fixes #128 .
References:
https://gitlab.com/sane-project/backends/issues/128
Tested-by: Michal Nowak <Mno-hime@gitlab>
2019-11-15 23:04:43 +03:00
Povilas Kanapickas
e2e72535b5
genesys: Record data that is important for shading data upload
2019-10-26 12:42:50 +02:00
Povilas Kanapickas
67588e46ef
genesys: Add checkpoints to record internal state
2019-10-26 12:42:49 +02:00
Povilas Kanapickas
eadfdb57a4
genesys: Add a way to record backend internals using test scanner iface
2019-10-26 12:42:48 +02:00