This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch releases/12.5
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.5 by this push:
new 64ab05457a drivers/video/isx019: Fix the default_value of some
parameters
64ab05457a is described below
commit 64ab05457abeb7e638a55311cb818a6b3b9998f4
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 794cbc3736..bd1a5938b9 100644
--- a/drivers/video/isx019.c
+++ b/drivers/video/isx019.c
@@ -1984,7 +1984,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:
@@ -2006,7 +2006,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: