staging: bcm2835-camera: Add greyworld AWB mode

This is mainly used for the NoIR camera which has no IR
filter and can completely confuse normal AWB presets.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
This commit is contained in:
Dave Stevenson
2019-09-06 15:13:06 +01:00
committed by popcornmix
parent dc3797eb01
commit b3ef481fe2
2 changed files with 5 additions and 0 deletions

View File

@@ -474,6 +474,10 @@ static int ctrl_set_awb_mode(struct bm2835_mmal_dev *dev,
case V4L2_WHITE_BALANCE_SHADE:
u32_value = MMAL_PARAM_AWBMODE_SHADE;
break;
case V4L2_WHITE_BALANCE_GREYWORLD:
u32_value = MMAL_PARAM_AWBMODE_GREYWORLD;
break;
}
return vchiq_mmal_port_parameter_set(dev->instance, control,

View File

@@ -313,6 +313,7 @@ enum mmal_parameter_awbmode {
MMAL_PARAM_AWBMODE_INCANDESCENT,
MMAL_PARAM_AWBMODE_FLASH,
MMAL_PARAM_AWBMODE_HORIZON,
MMAL_PARAM_AWBMODE_GREYWORLD,
};
enum mmal_parameter_imagefx {