aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorUmang Jain <[email protected]>2021-07-23 13:22:33 +0200
committerMauro Carvalho Chehab <[email protected]>2021-08-04 14:43:51 +0200
commitf809665ee75fff3f4ea8907f406a66d380aeb184 (patch)
tree2096c5f113ce37639431c045a069a6705bcb8869 /scripts/gdb/linux/utils.py
parent51f93add3669f1b1f540de1cf397815afbd4c756 (diff)
media: imx258: Limit the max analogue gain to 480
The range for analog gain mentioned in the datasheet is [0, 480]. The real gain formula mentioned in the datasheet is: Gain = 512 / (512 – X) Hence, values larger than 511 clearly makes no sense. The gain register field is also documented to be of 9-bits in the datasheet. Certainly, it is enough to infer that, the kernel driver currently advertises an arbitrary analog gain max. Fix it by rectifying the value as per the data sheet i.e. 480. Signed-off-by: Umang Jain <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Dave Stevenson <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions