Fix dotted image
This commit is contained in:
parent
3f911eb3f3
commit
5cede1ef85
|
@ -98,13 +98,13 @@ i2c8 = "/i2c@31e0000";
|
|||
inherent_gain = "1";
|
||||
pix_clk_hz = "74250000";
|
||||
|
||||
gain_factor = "3125";
|
||||
gain_factor = "3";
|
||||
framerate_factor = "1000000";
|
||||
exposure_factor = "1000000";
|
||||
min_gain_val = "100000";
|
||||
max_gain_val = "796000";
|
||||
exposure_factor = "1000000"; //"1000000";
|
||||
min_gain_val = "100";
|
||||
max_gain_val = "762";
|
||||
step_gain_val = "1";
|
||||
default_gain = "100000";
|
||||
default_gain = "100";
|
||||
min_hdr_ratio = "1";
|
||||
max_hdr_ratio = "1";
|
||||
|
||||
|
@ -113,10 +113,10 @@ i2c8 = "/i2c@31e0000";
|
|||
step_framerate = "1";
|
||||
default_framerate = "60000000"; // 60.0 fps
|
||||
|
||||
min_exp_time = "500"; // us
|
||||
max_exp_time = "16000"; // us
|
||||
min_exp_time = "23000"; // us
|
||||
max_exp_time = "1000000"; // us
|
||||
step_exp_time = "1";
|
||||
default_exp_time = "12000"; // us
|
||||
default_exp_time = "40000"; // us
|
||||
};
|
||||
ports {
|
||||
#address-cells = <0x1>;
|
||||
|
@ -185,13 +185,13 @@ i2c8 = "/i2c@31e0000";
|
|||
inherent_gain = "1";
|
||||
pix_clk_hz = "74250000";
|
||||
|
||||
gain_factor = "3125";
|
||||
gain_factor = "3";
|
||||
framerate_factor = "1000000";
|
||||
exposure_factor = "1000000";
|
||||
min_gain_val = "100000";
|
||||
max_gain_val = "796000";
|
||||
min_gain_val = "100";
|
||||
max_gain_val = "762";
|
||||
step_gain_val = "1";
|
||||
default_gain = "100000";
|
||||
default_gain = "100";
|
||||
min_hdr_ratio = "1";
|
||||
max_hdr_ratio = "1";
|
||||
|
||||
|
@ -200,10 +200,10 @@ i2c8 = "/i2c@31e0000";
|
|||
step_framerate = "1";
|
||||
default_framerate = "60000000"; // 60.0 fps
|
||||
|
||||
min_exp_time = "500"; // us
|
||||
max_exp_time = "16000"; // us
|
||||
min_exp_time = "23000"; // us
|
||||
max_exp_time = "1000000"; // us
|
||||
step_exp_time = "1";
|
||||
default_exp_time = "12000"; // us
|
||||
default_exp_time = "40000"; // us
|
||||
};
|
||||
ports {
|
||||
#address-cells = <0x1>;
|
||||
|
|
|
@ -135,8 +135,8 @@
|
|||
#define MT9M021_ANALOG_GAIN_SHIFT 4
|
||||
#define MT9M021_ANALOG_GAIN_MASK 0x0030
|
||||
|
||||
#define MT9M021_GLOBAL_GAIN_MIN 100000
|
||||
#define MT9M021_GLOBAL_GAIN_MAX 796000
|
||||
#define MT9M021_GLOBAL_GAIN_MIN 100
|
||||
#define MT9M021_GLOBAL_GAIN_MAX 762
|
||||
#define MT9M021_GLOBAL_GAIN_DEF 100
|
||||
|
||||
#define MT9M021_COARSE_INT_TIME_MIN 0x0001
|
||||
|
@ -420,15 +420,15 @@ static int mt9m021_set_gain(struct tegracam_device *tc_dev, s64 val)
|
|||
* GAIN: VAL / STEPS;
|
||||
* STEPS: 1/32
|
||||
*
|
||||
* SCALE FACTOR = 100.000
|
||||
* SCALE FACTOR = 32
|
||||
*
|
||||
* min_gain_val = 100.000
|
||||
* max_gain_val = 797.000
|
||||
* gain_factor = 3125
|
||||
* min_gain_val = 100
|
||||
* max_gain_val = 762
|
||||
* gain_factor = 3
|
||||
*
|
||||
* gain maps to range 32 - 255
|
||||
*/
|
||||
gain = val / 3125;
|
||||
gain = val / 3;
|
||||
|
||||
/* Update analog gain multiplier */
|
||||
err = mt9m021_read_reg16(s_data, MT9M021_DIGITAL_TEST, ®16);
|
||||
|
|
Loading…
Reference in New Issue