build/patch/kernel/archive/sunxi-6.5/patches.megous/media-ov5640-set-default-ae-target-lower.patch

28 lines
895 B
Diff

From bb0e0f72e0b30e30c024c10d8152d55ec0ab3eb8 Mon Sep 17 00:00:00 2001
From: Martijn Braam <martijn@brixit.nl>
Date: Wed, 7 Oct 2020 17:33:43 +0200
Subject: [PATCH 044/464] media: ov5640: set default ae target lower
The OV5640 tries to overexpose all photos by about 1 stop. This makes
the exposure target one stop lower.
---
drivers/media/i2c/ov5640.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
index f8297c0f604c..ffd836e2b94e 100644
--- a/drivers/media/i2c/ov5640.c
+++ b/drivers/media/i2c/ov5640.c
@@ -3851,7 +3851,7 @@ static int ov5640_probe(struct i2c_client *client)
sensor->current_link_freq =
ov5640_csi2_link_freqs[OV5640_DEFAULT_LINK_FREQ];
- sensor->ae_target = 52;
+ sensor->ae_target = 28;
endpoint = fwnode_graph_get_next_endpoint(dev_fwnode(&client->dev),
NULL);
--
2.34.1