aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/userspace-api/media/drivers
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2020-09-24 21:57:52 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-12 17:28:11 +0100
commita75210a62b81ce8cfbe9e10e29880d870ce94b8d (patch)
tree63e6551ddbebd18c4250a95a0b30447b68bec71a /Documentation/userspace-api/media/drivers
parentmedia: ccs: Add support for analogue gain coefficient controls (diff)
downloadwireguard-linux-a75210a62b81ce8cfbe9e10e29880d870ce94b8d.tar.xz
wireguard-linux-a75210a62b81ce8cfbe9e10e29880d870ce94b8d.zip
media: v4l: uapi: ccs: Add controls for CCS alternative analogue gain
Add two new controls for alternative analogue gain some CCS compliant camera sensors support. 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 a95d7941533d..ea09c8139c23 100644
--- a/Documentation/userspace-api/media/drivers/ccs.rst
+++ b/Documentation/userspace-api/media/drivers/ccs.rst
@@ -81,4 +81,17 @@ obtained from the following controls:
The analogue gain (``x`` in the formula) is controlled through
``V4L2_CID_ANALOGUE_GAIN`` in this case.
+Alternate analogue gain model
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The CCS defines another analogue gain model called alternate analogue gain. In
+this case, the formula to calculate actual gain consists of linear and
+exponential parts:
+
+ gain = linear * 2 ^ exponent
+
+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
+
**Copyright** |copy| 2020 Intel Corporation