diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2022-05-16 23:40:32 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2022-05-17 15:11:22 +0200 |
commit | 20ea6adbf199097c4f5f591ffee088340630dae4 (patch) | |
tree | d6719d95e136611a1c25bbf7789652d6d402779d /target/linux/bcm27xx/patches-5.15/950-0637-media-v4l2-ctrls-Document-V4L2_CID_NOTIFY_GAINS-cont.patch | |
parent | bca05bd072180dc38ef740b37ded9572a6db1981 (diff) | |
download | upstream-20ea6adbf199097c4f5f591ffee088340630dae4.tar.gz upstream-20ea6adbf199097c4f5f591ffee088340630dae4.tar.bz2 upstream-20ea6adbf199097c4f5f591ffee088340630dae4.zip |
bcm27xx: add support for linux v5.15
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.15/950-0637-media-v4l2-ctrls-Document-V4L2_CID_NOTIFY_GAINS-cont.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.15/950-0637-media-v4l2-ctrls-Document-V4L2_CID_NOTIFY_GAINS-cont.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.15/950-0637-media-v4l2-ctrls-Document-V4L2_CID_NOTIFY_GAINS-cont.patch b/target/linux/bcm27xx/patches-5.15/950-0637-media-v4l2-ctrls-Document-V4L2_CID_NOTIFY_GAINS-cont.patch new file mode 100644 index 0000000000..55a2a4ef22 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.15/950-0637-media-v4l2-ctrls-Document-V4L2_CID_NOTIFY_GAINS-cont.patch @@ -0,0 +1,48 @@ +From dd91fe58de578570d49fe644eb05398a27510478 Mon Sep 17 00:00:00 2001 +From: David Plowman <david.plowman@raspberrypi.com> +Date: Mon, 16 Aug 2021 13:39:09 +0200 +Subject: [PATCH] media: v4l2-ctrls: Document V4L2_CID_NOTIFY_GAINS + control + +commit 311a839a1ad255ebcb7291fb4e0d2ec2f32312a7 upstream. + +Add documentation for the V4L2_CID_NOTIFY_GAINS control. + +This control is required by sensors that need to know what colour +gains will be applied to pixels by downstream processing (such as by +an ISP), though the sensor does not apply these gains itself. + +Signed-off-by: David Plowman <david.plowman@raspberrypi.com> +Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> +Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> +Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> +--- + .../media/v4l/ext-ctrls-image-source.rst | 20 +++++++++++++++++++ + 1 file changed, 20 insertions(+) + +--- a/Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst ++++ b/Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst +@@ -72,3 +72,23 @@ Image Source Control IDs + * - __u32 + - ``height`` + - Height of the area. ++ ++``V4L2_CID_NOTIFY_GAINS (integer array)`` ++ The sensor is notified what gains will be applied to the different ++ colour channels by subsequent processing (such as by an ISP). The ++ sensor is merely informed of these values in case it performs ++ processing that requires them, but it does not apply them itself to ++ the output pixels. ++ ++ Currently it is defined only for Bayer sensors, and is an array ++ control taking 4 gain values, being the gains for each of the ++ Bayer channels. The gains are always in the order B, Gb, Gr and R, ++ irrespective of the exact Bayer order of the sensor itself. ++ ++ The use of an array allows this control to be extended to sensors ++ with, for example, non-Bayer CFAs (colour filter arrays). ++ ++ The units for the gain values are linear, with the default value ++ representing a gain of exactly 1.0. For example, if this default value ++ is reported as being (say) 128, then a value of 192 would represent ++ a gain of exactly 1.5. |