5cf94f12b22bdb661b17326fec80b5caceae7e1b
[openwrt/staging/ldir.git] /
1 From 8d5fe5f8e6d877811ae270e087f19496b98ea1ca Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 8 Feb 2021 11:48:35 +0000
4 Subject: [PATCH] staging:bcm2835-camera: Fix the cherry-pick of AWB
5 Greyworld
6
7 The cherry-pick of the patch that added the greyworld AWB mode
8 was incomplete. Fix it up.
9
10 Fixes: b3ef481fe243 "staging: bcm2835-camera: Add greyworld AWB mode"
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/staging/vc04_services/bcm2835-camera/controls.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c
17 +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c
18 @@ -1050,8 +1050,8 @@ static const struct bcm2835_mmal_v4l2_ct
19 {
20 .id = V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE,
21 .type = MMAL_CONTROL_TYPE_STD_MENU,
22 - .min = ~0x3ff,
23 - .max = V4L2_WHITE_BALANCE_SHADE,
24 + .min = ~0x7ff,
25 + .max = V4L2_WHITE_BALANCE_GREYWORLD,
26 .def = V4L2_WHITE_BALANCE_AUTO,
27 .step = 0,
28 .imenu = NULL,