This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 33485cfe7c drivers/video/isx019: Fix the default_value of some
parameters
33485cfe7c is described below
commit 33485cfe7c226098ad6c6ac60f43374d059e016c
Author: SPRESENSE <[email protected]>
AuthorDate: Thu Feb 29 22:18:47 2024 +0900
drivers/video/isx019: Fix the default_value of some parameters
Because the exposure time and ISO sensitivity are adjusted automatically
by default, the default value can not be defined.
So, return the value out of range as the default_value of
ioctl(VIDIOC_QUERYCTRL).
---
drivers/video/isx019.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/isx019.c b/drivers/video/isx019.c
index 745c9af04c..1f5f66f965 100644
--- a/drivers/video/isx019.c
+++ b/drivers/video/isx019.c
@@ -1975,7 +1975,7 @@ static int isx019_get_supported_value(FAR struct
imgsensor_s *sensor,
case IMGSENSOR_ID_EXPOSURE_ABSOLUTE:
val->type = IMGSENSOR_CTRL_TYPE_INTEGER;
SET_RANGE(val->u.range, MIN_EXPOSURETIME, MAX_EXPOSURETIME,
- STEP_EXPOSURETIME, def->exptime);
+ STEP_EXPOSURETIME, 0); /* 0 means undefined */
break;
case IMGSENSOR_ID_AUTO_N_PRESET_WB:
@@ -1997,7 +1997,7 @@ static int isx019_get_supported_value(FAR struct
imgsensor_s *sensor,
SET_DISCRETE(val->u.discrete,
NR_ISO,
g_isx019_iso,
- def->iso);
+ 0); /* 0 means undefined */
break;
case IMGSENSOR_ID_ISO_SENSITIVITY_AUTO: