Compare commits
2 Commits
5cede1ef85
...
e4327010bd
Author | SHA1 | Date |
---|---|---|
dchvs | e4327010bd | |
dchvs | abc331988f |
|
@ -100,11 +100,11 @@ i2c8 = "/i2c@31e0000";
|
|||
|
||||
gain_factor = "3";
|
||||
framerate_factor = "1000000";
|
||||
exposure_factor = "1000000"; //"1000000";
|
||||
min_gain_val = "100";
|
||||
max_gain_val = "762";
|
||||
exposure_factor = "1000000";
|
||||
min_gain_val = "102";
|
||||
max_gain_val = "160";
|
||||
step_gain_val = "1";
|
||||
default_gain = "100";
|
||||
default_gain = "102";
|
||||
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 = "23000"; // us
|
||||
max_exp_time = "1000000"; // us
|
||||
min_exp_time = "24000"; // us
|
||||
max_exp_time = "74000"; // us
|
||||
step_exp_time = "1";
|
||||
default_exp_time = "40000"; // us
|
||||
default_exp_time = "50000"; // us
|
||||
};
|
||||
ports {
|
||||
#address-cells = <0x1>;
|
||||
|
@ -188,10 +188,10 @@ i2c8 = "/i2c@31e0000";
|
|||
gain_factor = "3";
|
||||
framerate_factor = "1000000";
|
||||
exposure_factor = "1000000";
|
||||
min_gain_val = "100";
|
||||
max_gain_val = "762";
|
||||
min_gain_val = "102";
|
||||
max_gain_val = "160" ; //"762";
|
||||
step_gain_val = "1";
|
||||
default_gain = "100";
|
||||
default_gain = "102";
|
||||
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 = "23000"; // us
|
||||
max_exp_time = "1000000"; // us
|
||||
min_exp_time = "24000"; // us
|
||||
max_exp_time = "74000"; // us
|
||||
step_exp_time = "1";
|
||||
default_exp_time = "40000"; // us
|
||||
default_exp_time = "50000"; // us
|
||||
};
|
||||
ports {
|
||||
#address-cells = <0x1>;
|
||||
|
|
|
@ -439,7 +439,6 @@ static int mt9m021_set_gain(struct tegracam_device *tc_dev, s64 val)
|
|||
((gain_mul << MT9M021_ANALOG_GAIN_SHIFT) &
|
||||
MT9M021_ANALOG_GAIN_MASK);
|
||||
err = mt9m021_write_reg16(s_data, MT9M021_DIGITAL_TEST, reg16);
|
||||
// msleep(10);
|
||||
if (err)
|
||||
goto exit;
|
||||
|
||||
|
@ -454,6 +453,8 @@ static int mt9m021_set_gain(struct tegracam_device *tc_dev, s64 val)
|
|||
if (err)
|
||||
goto exit;
|
||||
|
||||
// usleep_range(1000, 1500);
|
||||
|
||||
return 0;
|
||||
|
||||
exit:
|
||||
|
|
Loading…
Reference in New Issue