mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
drivers/video/isx019: Fix control type of some parameters
Fix control type of some parameters according to specification.
This commit is contained in:
parent
fdf9f00952
commit
dc82022769
1 changed files with 5 additions and 5 deletions
|
@ -1882,7 +1882,7 @@ static int isx019_get_supported_value(FAR struct imgsensor_s *sensor,
|
|||
break;
|
||||
|
||||
case IMGSENSOR_ID_AUTO_WHITE_BALANCE:
|
||||
val->type = IMGSENSOR_CTRL_TYPE_INTEGER;
|
||||
val->type = IMGSENSOR_CTRL_TYPE_BOOLEAN;
|
||||
SET_RANGE(val->u.range, MIN_AWB, MAX_AWB,
|
||||
STEP_AWB, def->awb);
|
||||
break;
|
||||
|
@ -1900,25 +1900,25 @@ static int isx019_get_supported_value(FAR struct imgsensor_s *sensor,
|
|||
break;
|
||||
|
||||
case IMGSENSOR_ID_HFLIP_VIDEO:
|
||||
val->type = IMGSENSOR_CTRL_TYPE_INTEGER;
|
||||
val->type = IMGSENSOR_CTRL_TYPE_BOOLEAN;
|
||||
SET_RANGE(val->u.range, MIN_HFLIP, MAX_HFLIP,
|
||||
STEP_HFLIP, def->hflip_video);
|
||||
break;
|
||||
|
||||
case IMGSENSOR_ID_VFLIP_VIDEO:
|
||||
val->type = IMGSENSOR_CTRL_TYPE_INTEGER;
|
||||
val->type = IMGSENSOR_CTRL_TYPE_BOOLEAN;
|
||||
SET_RANGE(val->u.range, MIN_VFLIP, MAX_VFLIP,
|
||||
STEP_VFLIP, def->vflip_video);
|
||||
break;
|
||||
|
||||
case IMGSENSOR_ID_HFLIP_STILL:
|
||||
val->type = IMGSENSOR_CTRL_TYPE_INTEGER;
|
||||
val->type = IMGSENSOR_CTRL_TYPE_BOOLEAN;
|
||||
SET_RANGE(val->u.range, MIN_HFLIP, MAX_HFLIP,
|
||||
STEP_HFLIP, def->hflip_still);
|
||||
break;
|
||||
|
||||
case IMGSENSOR_ID_VFLIP_STILL:
|
||||
val->type = IMGSENSOR_CTRL_TYPE_INTEGER;
|
||||
val->type = IMGSENSOR_CTRL_TYPE_BOOLEAN;
|
||||
SET_RANGE(val->u.range, MIN_VFLIP, MAX_VFLIP,
|
||||
STEP_VFLIP, def->hflip_still);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue