diff options
| author | Hans de Goede <[email protected]> | 2023-08-03 11:33:39 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-08-14 20:27:57 +0200 |
| commit | 05d6bd86dcf7960dfaa163472d9dec1b7295f27b (patch) | |
| tree | 1906908f2e634decf74b2922cdf5b83d29690fda /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 3b378b35e83d8d87bdbe353c7597565595ff2dc9 (diff) | |
media: ov2680: Fix exposure and gain ctrls range and default value
The exposure control's max effective value is VTS - 8, set the control
range to match this. Thas means that if/when a future commit makes VTS
configurable as a control itself the exposure range needs to be
updated dynamically to match the VTS value.
The gain control goes from 0 - 1023, higher values wrap around to
the lowest gain setting.
The gain control, controls an analog gain so use V4L2_CID_ANALOGUE_GAIN
for it instead of V4L2_CID_GAIN.
Also stop setting 0 as default for both controls this leads to
a totally black picture which is no good. This is esp. important
for tests of the sensor driver without (userspace driven)
auto exposure / gain.
Acked-by: Rui Miguel Silva <[email protected]>
Reviewed-by: Daniel Scally <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions