From d4df26e9f987dbac7097c728ce81c6bd1957910c Mon Sep 17 00:00:00 2001 From: dchvs Date: Mon, 15 Mar 2021 22:22:34 -0600 Subject: [PATCH] documentation: Fix gain equation on Driver --- kernel/nvidia-spiri/drivers/media/i2c/mt9m021.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/nvidia-spiri/drivers/media/i2c/mt9m021.c b/kernel/nvidia-spiri/drivers/media/i2c/mt9m021.c index 7443a06..f0ca5b2 100644 --- a/kernel/nvidia-spiri/drivers/media/i2c/mt9m021.c +++ b/kernel/nvidia-spiri/drivers/media/i2c/mt9m021.c @@ -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;