Verified Commit 365e9de8 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

hi846: Set digital gain range to 1.0x - 15.99x

Digital gain registers are comprised of 13 bits. 4 bits [12:9]
control the integer portion, and 9 bits [8:0] control the decimal
portion. Therefore 256 (0x100) corresponds to ~0.5x digital gain.

This sets digital gain to 1.0x by default and limits the minimum
value to 1.0x since there's little point in having global digital
gain of less than 1.0x as its only effect is lowering picture quality
by reducing its dynamic range and white point.
parent 379b18a2
Pipeline #68525 passed with stage
in 65 minutes and 7 seconds
......@@ -79,10 +79,10 @@
#define HI846_REG_MWB_R_GAIN_L 0x007d
#define HI846_REG_MWB_B_GAIN_H 0x007e
#define HI846_REG_MWB_B_GAIN_L 0x007f
#define HI846_DGTL_GAIN_MIN 0
#define HI846_DGTL_GAIN_MIN 512
#define HI846_DGTL_GAIN_MAX 8191
#define HI846_DGTL_GAIN_STEP 1
#define HI846_DGTL_GAIN_DEFAULT 256
#define HI846_DGTL_GAIN_DEFAULT 512
#define HI846_REG_X_ADDR_START_HACT_H 0x0120
#define HI846_REG_X_ADDR_END_HACT_H 0x0122
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment