diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-02-18 18:04:33 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-02-18 23:42:32 +0100 |
commit | f07e572f6447465d8938679533d604e402b0f066 (patch) | |
tree | cb333bd2a67e59e7c07659514850a0fd55fc825e /target/linux/bcm27xx/patches-5.4/950-0689-media-i2c-ov5647-Neither-analogue-gain-nor-exposure-.patch | |
parent | 5d3a6fd970619dfc55f8259035c3027d7613a2a6 (diff) | |
download | upstream-f07e572f6447465d8938679533d604e402b0f066.tar.gz upstream-f07e572f6447465d8938679533d604e402b0f066.tar.bz2 upstream-f07e572f6447465d8938679533d604e402b0f066.zip |
bcm27xx: import latest patches from the RPi foundation
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G
bcm2710: boot tested on RPi 3B v1.2
bcm2711: boot tested on RPi 4B v1.1 4G
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.4/950-0689-media-i2c-ov5647-Neither-analogue-gain-nor-exposure-.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.4/950-0689-media-i2c-ov5647-Neither-analogue-gain-nor-exposure-.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/target/linux/bcm27xx/patches-5.4/950-0689-media-i2c-ov5647-Neither-analogue-gain-nor-exposure-.patch b/target/linux/bcm27xx/patches-5.4/950-0689-media-i2c-ov5647-Neither-analogue-gain-nor-exposure-.patch deleted file mode 100644 index 039809e94e..0000000000 --- a/target/linux/bcm27xx/patches-5.4/950-0689-media-i2c-ov5647-Neither-analogue-gain-nor-exposure-.patch +++ /dev/null @@ -1,58 +0,0 @@ -From ea0b801a818e837e657c53687f03d62805e2e586 Mon Sep 17 00:00:00 2001 -From: Dave Stevenson <dave.stevenson@raspberrypi.com> -Date: Wed, 29 Apr 2020 21:47:25 +0100 -Subject: [PATCH] media: i2c: ov5647: Neither analogue gain nor - exposure need EXECUTE_ON_WRITE - -The controls for analogue gain and exposure were defined with -V4L2_CTRL_FLAG_EXECUTE_ON_WRITE. This is not required as we only need -to send changes to the sensor. - -Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> ---- - drivers/media/i2c/ov5647.c | 27 ++++++++++++--------------- - 1 file changed, 12 insertions(+), 15 deletions(-) - ---- a/drivers/media/i2c/ov5647.c -+++ b/drivers/media/i2c/ov5647.c -@@ -1472,7 +1472,6 @@ static int ov5647_probe(struct i2c_clien - struct v4l2_subdev *sd; - struct device_node *np = client->dev.of_node; - u32 xclk_freq; -- struct v4l2_ctrl *ctrl; - int hblank; - - sensor = devm_kzalloc(dev, sizeof(*sensor), GFP_KERNEL); -@@ -1525,20 +1524,18 @@ static int ov5647_probe(struct i2c_clien - V4L2_EXPOSURE_MANUAL, /* max */ - 0, /* skip_mask */ - V4L2_EXPOSURE_MANUAL); /* default */ -- ctrl = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, -- V4L2_CID_EXPOSURE, -- 4, /* min lines */ -- 65535, /* max lines (4+8+4 bits)*/ -- 1, /* step */ -- 1000); /* default number of lines */ -- ctrl->flags |= V4L2_CTRL_FLAG_EXECUTE_ON_WRITE; -- ctrl = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, -- V4L2_CID_ANALOGUE_GAIN, -- 16, /* min, 16 = 1.0x */ -- 1023, /* max (10 bits) */ -- 1, /* step */ -- 32); /* default, 32 = 2.0x */ -- ctrl->flags |= V4L2_CTRL_FLAG_EXECUTE_ON_WRITE; -+ v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, -+ V4L2_CID_EXPOSURE, -+ 4, /* min lines */ -+ 65535, /* max lines (4+8+4 bits)*/ -+ 1, /* step */ -+ 1000); /* default number of lines */ -+ v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, -+ V4L2_CID_ANALOGUE_GAIN, -+ 16, /* min, 16 = 1.0x */ -+ 1023, /* max (10 bits) */ -+ 1, /* step */ -+ 32); /* default, 32 = 2.0x */ - - /* Set the default mode before we init the subdev */ - sensor->mode = OV5647_DEFAULT_MODE; |