documentation: Fix gain equation on Driver

This commit is contained in:
dchvs 2021-03-15 22:22:34 -06:00
parent 809d88dd93
commit d4df26e9f9
1 changed files with 4 additions and 5 deletions

View File

@ -417,16 +417,15 @@ static int mt9m021_set_gain(struct tegracam_device *tc_dev, s64 val)
* Digital gain equation:
*
* RANGE: 1x, 7.97x
* GAIN: VAL / STEPS;
* STEPS: 1/32
*
* SCALE FACTOR = 32
* SCALE FACTOR = 3
*
* min_gain_val = 100
* max_gain_val = 762
* min_gain_val = 102
* max_gain_val = 160
* gain_factor = 3
*
* gain maps to range 32 - 255
* gain accepts mapping to range 32 - 53
*/
gain = val / 3;