aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/userspace-api/media/drivers
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2020-09-25 10:28:56 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-12 17:31:14 +0100
commit7c0ed600f04d247cbb4c4030d87a8d36b12d44a4 (patch)
treea8b5c3665a4cfd93588ffd46783fa291fa76b8b4 /Documentation/userspace-api/media/drivers
parentmedia: ccs: Add debug prints for MSR registers (diff)
downloadwireguard-linux-7c0ed600f04d247cbb4c4030d87a8d36b12d44a4.tar.xz
wireguard-linux-7c0ed600f04d247cbb4c4030d87a8d36b12d44a4.zip
media: v4l: uapi: ccs: Add CCS controls for shading correction
Add V4L2 controls for controlling CCS lens shading correction as well as conveying its capabilities. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'Documentation/userspace-api/media/drivers')
-rw-r--r--Documentation/userspace-api/media/drivers/ccs.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/userspace-api/media/drivers/ccs.rst b/Documentation/userspace-api/media/drivers/ccs.rst
index ea09c8139c23..161cb65f4d98 100644
--- a/Documentation/userspace-api/media/drivers/ccs.rst
+++ b/Documentation/userspace-api/media/drivers/ccs.rst
@@ -94,4 +94,17 @@ The ``linear`` and ``exponent`` factors can be set using the
``V4L2_CID_CCS_ANALOGUE_LINEAR_GAIN`` and
``V4L2_CID_CCS_ANALOGUE_EXPONENTIAL_GAIN`` controls, respectively
+Shading correction
+~~~~~~~~~~~~~~~~~~
+
+The CCS standard supports lens shading correction. The feature can be controlled
+using ``V4L2_CID_CCS_SHADING_CORRECTION``. Additionally, the luminance
+correction level may be changed using
+``V4L2_CID_CCS_LUMINANCE_CORRECTION_LEVEL``, where value 0 indicates no
+correction and 128 indicates correcting the luminance in corners to 10 % less
+than in the centre.
+
+Shading correction needs to be enabled for luminance correction level to have an
+effect.
+
**Copyright** |copy| 2020 Intel Corporation