d54429dee8f0206c3905abb984163318ad7ab95d
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0341-staging-bcm2835-camera-Fix-the-cherry-pick-of-AWB-Gr.patch
1 From 9d7d075f7290451f6fe43e754780fa4eef6b0877 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 @@ -1056,8 +1056,8 @@ static const struct bm2835_mmal_v4l2_ctr
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,