Commit 93a8883f authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman

staging: bcm2835-camera: Activate V4L2_EXPOSURE_METERING_MATRIX handling

I don't see any reason to keep this TODO, so activate the
V4L2_EXPOSURE_METERING_MATRIX handling.
Reviewed-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1585485901-10172-3-git-send-email-stefan.wahren@i2se.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e7a57270
...@@ -377,11 +377,9 @@ static int ctrl_set_metering_mode(struct bm2835_mmal_dev *dev, ...@@ -377,11 +377,9 @@ static int ctrl_set_metering_mode(struct bm2835_mmal_dev *dev,
dev->metering_mode = MMAL_PARAM_EXPOSUREMETERINGMODE_SPOT; dev->metering_mode = MMAL_PARAM_EXPOSUREMETERINGMODE_SPOT;
break; break;
/* todo matrix weighting not added to Linux API till 3.9 case V4L2_EXPOSURE_METERING_MATRIX:
* case V4L2_EXPOSURE_METERING_MATRIX: dev->metering_mode = MMAL_PARAM_EXPOSUREMETERINGMODE_MATRIX;
* dev->metering_mode = MMAL_PARAM_EXPOSUREMETERINGMODE_MATRIX; break;
* break;
*/
} }
if (dev->scene_mode == V4L2_SCENE_MODE_NONE) { if (dev->scene_mode == V4L2_SCENE_MODE_NONE) {
...@@ -1045,8 +1043,8 @@ static const struct bm2835_mmal_v4l2_ctrl v4l2_ctrls[V4L2_CTRL_COUNT] = { ...@@ -1045,8 +1043,8 @@ static const struct bm2835_mmal_v4l2_ctrl v4l2_ctrls[V4L2_CTRL_COUNT] = {
{ {
.id = V4L2_CID_EXPOSURE_METERING, .id = V4L2_CID_EXPOSURE_METERING,
.type = MMAL_CONTROL_TYPE_STD_MENU, .type = MMAL_CONTROL_TYPE_STD_MENU,
.min = ~0x7, .min = ~0xf,
.max = V4L2_EXPOSURE_METERING_SPOT, .max = V4L2_EXPOSURE_METERING_MATRIX,
.def = V4L2_EXPOSURE_METERING_AVERAGE, .def = V4L2_EXPOSURE_METERING_AVERAGE,
.step = 0, .step = 0,
.imenu = NULL, .imenu = NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment