/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ad3552r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nuno Sá <nuno.sa@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3541r.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf 18 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3551r.pdf 19 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf 24 - adi,ad3541r 25 - adi,ad3542r [all …]
|
/linux/drivers/iio/dac/ |
H A D | ad3552r.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 #define AD3552R_MASK_DEVICE_STATUS(n) BIT(4 + (n)) argument 103 #define AD3552R_REG_ADDR_CH_DAC_16B(ch) (0x2C - (1 - ch) * 2) 108 #define AD3552R_REG_ADDR_CH_INPUT_16B(ch) (0x36 - (1 - ch) * 2) 112 #define AD3552R_REG_ADDR_CH_DAC_24B(ch) (0x3D - (1 - ch) * 3) 117 #define AD3552R_REG_ADDR_CH_INPUT_24B(ch) (0x4B - (1 - ch) * 3) 156 /* Range from -5 V to 5 V. Requires Rfb2x connection */ 158 /* Range from -10 V to 10 V. Requires Rfb4x connection */ 166 [AD3552R_CH_OUTPUT_RANGE_NEG_5__5V] = {-5000, 5000}, 167 [AD3552R_CH_OUTPUT_RANGE_NEG_10__10V] = {-10000, 10000} [all …]
|
/linux/drivers/media/i2c/ |
H A D | bt819.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * bt819 - BT819A VideoStream Decoder (Rockwell Part) 12 * - moved over to linux>=2.4.x i2c protocol (9/9/2002) 25 #include <media/v4l2-device.h> 26 #include <media/v4l2-ctrls.h> 29 MODULE_DESCRIPTION("Brooktree-819 video decoder driver"); 35 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 38 /* ----------------------------------------------------------------------- */ 57 return &container_of(ctrl->handler, struct bt819, hdl)->sd; in to_sd() 71 {864 - 24, 20, 625 - 2, 1, 0x0504, 0x0000}, [all …]
|
H A D | tw9903.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2006 Micronas USA Inc. 11 #include <media/v4l2-device.h> 12 #include <media/v4l2-ctrls.h> 19 * This driver is based on the wis-tw9903.c source that was in 21 * saturation and scaling (neither seemed to work). If anyone ever gets 24 * wis-tw9903 driver is still present. 50 0x0d, 0x00, /* scaling */ 51 0x0e, 0x11, /* scaling */ 52 0x0f, 0x00, /* scaling */ [all …]
|
H A D | tw9906.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2006 Micronas USA Inc. 12 #include <media/v4l2-device.h> 13 #include <media/v4l2-ctrls.h> 38 0x0d, 0x00, /* scaling */ 39 0x0e, 0x11, /* scaling */ 40 0x0f, 0x00, /* scaling */ 44 0x13, 0x7e, /* U gain */ 45 0x14, 0x7e, /* V gain */ 58 0x00, 0x00, /* Terminator (reg 0x00 is read-only) */ [all …]
|
H A D | saa7115.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // saa711x - Philips SAA711x video decoder driver 23 // Copyright (c) 2005-2006 Mauro Carvalho Chehab <mchehab@kernel.org> 33 #include <media/v4l2-device.h> 34 #include <media/v4l2-ctrls.h> 35 #include <media/v4l2-mc.h> 49 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 76 /* chroma gain control cluster */ 78 struct v4l2_ctrl *gain; member 104 return &container_of(ctrl->handler, struct saa711x_state, hdl)->sd; in to_sd() [all …]
|
H A D | ov772x.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 26 #include <linux/v4l2-mediabus.h> 31 #include <media/v4l2-ctrls.h> 32 #include <media/v4l2-device.h> 33 #include <media/v4l2-event.h> 34 #include <media/v4l2-fwnode.h> 35 #include <media/v4l2-image-sizes.h> 36 #include <media/v4l2-subdev.h> 41 #define GAIN 0x00 /* AGC - Gain control gain setting */ macro [all …]
|
H A D | tw9910.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 26 #include <linux/v4l2-mediabus.h> 30 #include <media/v4l2-subdev.h> 51 #define VSCALE_LO 0x0D /* Vertical Scaling Register, Low */ 52 #define SCALE_HI 0x0E /* Scaling Register, High */ 53 #define HSCALE_LO 0x0F /* Horizontal Scaling Register, Low */ 57 #define SAT_U 0x13 /* Chroma (U) Gain Register */ 58 #define SAT_V 0x14 /* Chroma (V) Gain Register */ 68 #define CLMPG 0x20 /* Clamping Gain */ [all …]
|
H A D | saa717x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * saa717x - Philips SAA717xHL video decoder driver 8 * - Apply to SAA717x,NEC uPD64031,uPD64083. (1/31/2004) 10 * Changes by T.Adachi (tadachi@tadachi-net.com) 11 * - support audio, video scaler etc, and checked the initialize sequence. 27 #include <media/v4l2-device.h> 28 #include <media/v4l2-ctrls.h> 36 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 70 return &container_of(ctrl->handler, struct saa717x_state, hdl)->sd; in to_sd() 73 /* ----------------------------------------------------------------------- */ [all …]
|
H A D | ov6650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 29 #include <linux/v4l2-mediabus.h> 32 #include <media/v4l2-ctrls.h> 33 #include <media/v4l2-device.h> 36 #define REG_GAIN 0x00 /* range 00 - 3F */ 51 /* [5:0]: Internal Clock Pre-Scaler */ 165 #define W_QCIF (DEF_HSTOP - DEF_HSTRT) 167 #define H_QCIF (DEF_VSTOP - DEF_VSTRT) 187 /* gain/autogain cluster */ [all …]
|
H A D | ov5640.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved. 4 * Copyright (C) 2014-2017 Mentor Graphics Inc. 8 #include <linux/clk-provider.h> 22 #include <media/v4l2-async.h> 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-event.h> 26 #include <media/v4l2-fwnode.h> 27 #include <media/v4l2-subdev.h> [all …]
|
H A D | mt9m111.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/v4l2-mediabus.h> 18 #include <media/v4l2-async.h> 19 #include <media/v4l2-common.h> 20 #include <media/v4l2-ctrls.h> 21 #include <media/v4l2-device.h> 22 #include <media/v4l2-event.h> 23 #include <media/v4l2-fwnode.h> 231 struct v4l2_ctrl *gain; member 245 /* user point of view - 0: falling 1: rising edge */ [all …]
|
H A D | ks0127.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * for the Matrox Marvel G200,G400 and Rainbow Runner-G series 20 * V1.1 Gerard v.d. Horst Added some debugoutput, reset the video-standard 31 #include <media/v4l2-device.h> 233 table[KS_HSCLL] = 0x00; /* Horizontal Scaling Ratio Low */ in init_reg_defaults() 234 table[KS_HSCLH] = 0x00; /* Horizontal Scaling Ratio High */ in init_reg_defaults() 235 table[KS_VSCLL] = 0x00; /* Vertical Scaling Ratio Low */ in init_reg_defaults() 236 table[KS_VSCLH] = 0x00; /* Vertical Scaling Ratio High */ in init_reg_defaults() 252 table[KS_UGAIN] = 0x00; /* U Component Gain Adjustment */ in init_reg_defaults() 253 table[KS_VGAIN] = 0x00; /* V Component Gain Adjustment */ in init_reg_defaults() [all …]
|
H A D | ov7670.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 20 #include <media/v4l2-device.h> 21 #include <media/v4l2-event.h> 22 #include <media/v4l2-ctrls.h> 23 #include <media/v4l2-fwnode.h> 24 #include <media/v4l2-mediabus.h> 25 #include <media/v4l2-image-sizes.h> 29 MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); 34 MODULE_PARM_DESC(debug, "Debug level (0-1)"); [all …]
|
H A D | mt9m001.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <media/v4l2-ctrls.h> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-event.h> 21 #include <media/v4l2-subdev.h> 63 int n) in mt9m001_find_datafmt() argument 66 for (i = 0; i < n; i++) in mt9m001_find_datafmt() 83 /* Order important - see above */ 92 /* exposure/auto-exposure cluster */ 180 dev_dbg(&client->dev, "%s\n", __func__); in mt9m001_init() [all …]
|
/linux/drivers/hwmon/ |
H A D | ina238.c | 1 // SPDX-License-Identifier: GPL-2.0-only 62 * how the ina2xx driver handles current/power scaling. 72 * The maximum shunt voltage is 163.835 mV (0x7fff, ADC_RANGE = 0, gain = 4). 83 * This scaling means the resulting values for Current and Power registers need 89 * Current (mA) = register value * 20000 / rshunt / 4 * gain 90 * Power (W) = 0.2 * register value * 20000 / rshunt / 4 * gain 110 int gain; member 118 /* 24-bit register read */ in ina238_read_reg24() 123 return -EIO; in ina238_read_reg24() 158 return -EOPNOTSUPP; in ina238_read_in() [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | vivid.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 Each input can be a webcam, TV capture device, S-Video capture device or an HDMI 14 capture device. Each output can be an S-Video output device or an HDMI output 23 - Support for read()/write(), MMAP, USERPTR and DMABUF streaming I/O. 24 - A large list of test patterns and variations thereof 25 - Working brightness, contrast, saturation and hue controls 26 - Support for the alpha color component 27 - Full colorspace support, including limited/full RGB range 28 - All possible control types are present 29 - Support for various pixel aspect ratios and video aspect ratios [all …]
|
H A D | ipu3.rst | 1 .. SPDX-License-Identifier: GPL-2.0 24 ImgU). The CIO2 driver is available as drivers/media/pci/intel/ipu3/ipu3-cio2* 36 Both of the drivers implement V4L2, Media Controller and V4L2 sub-device 38 MIPI CSI-2 interfaces through V4L2 sub-device sensor drivers. 44 interface to the user space. There is a video node for each CSI-2 receiver, 47 The CIO2 contains four independent capture channel, each with its own MIPI CSI-2 48 receiver and DMA engine. Each channel is modelled as a V4L2 sub-device exposed 49 to userspace as a V4L2 sub-device node and has two pads: 53 .. flat-table:: 54 :header-rows: 1 [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-queryctrl.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_QUERYCTRL - VIDIOC_QUERY_EXT_CTRL - VIDIOC_QUERYMENU - Enumerate controls and menu control i… 42 of a struct :ref:`v4l2_queryctrl <v4l2-queryctrl>` and call the 60 driver returns the next supported non-compound control, or ``EINVAL`` if 72 :ref:`v4l2_queryctrl <v4l2-queryctrl>` since that structure is full. 80 fields of struct :ref:`v4l2_querymenu <v4l2-querymenu>` and call the 85 :ref:`v4l2_queryctrl <v4l2-queryctrl>` ``minimum`` to ``maximum``, 99 .. _v4l2-queryctrl: 103 .. flat-table:: struct v4l2_queryctrl 104 :header-rows: 0 [all …]
|
/linux/Documentation/driver-api/media/drivers/ccs/ |
H A D | ccs-regs.asc | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause 2 # Copyright (C) 2019--2020 Intel Corporation 5 # - f field LSB MSB rflags 6 # - e enum value # after a field 7 # - e enum value [LSB MSB] 8 # - b bool bit 9 # - l arg name min max elsize [discontig...] 23 - e GRBG 0 24 - e RGGB 1 25 - e BGGR 2 [all …]
|
/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 1 // SPDX-License-Identifier: GPL-2.0 33 *val *= rescale->numerator; in rescale_process_scale() 34 if (rescale->denominator == 1) in rescale_process_scale() 36 *val2 = rescale->denominator; in rescale_process_scale() 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale() 53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale() 54 tmp *= rescale->numerator; in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() [all …]
|
/linux/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <media/drv-intf/saa7146_vv.h> 26 hyo = vv->standard->v_offset; in calculate_hxo_and_hyo() 27 hxo = vv->standard->h_offset; in calculate_hxo_and_hyo() 36 /* helper functions for the calculation of the horizontal- and vertical 37 scaling registers, clip-format-register etc ... 38 these functions take pointers to the (most-likely read-out 39 original-values) and manipulate them according to the requested 43 /* hps_coeff used for CXY and CXUV; scale 1/1 -> scale 1/64 */ 63 /* table of attenuation values for horizontal scaling */ [all …]
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | commands.h | 8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 92 /* Multi-Station support */ 138 /* RF-KILL commands and notifications */ 184 * when sending the response to each driver-originated command, so 196 * 0:7 tfd idx - position within TX queue 199 * 14 huge - driver sets this to indicate command is in the 201 * 15 unsolicited RX or uCode-originated notification 212 * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-kthread-cap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vivid-kthread-cap.h - video/vbi capture thread support functions. 20 #include <linux/v4l2-dv-timings.h> 23 #include <media/videobuf2-vmalloc.h> 24 #include <media/v4l2-dv-timings.h> 25 #include <media/v4l2-ioctl.h> 26 #include <media/v4l2-fh.h> 27 #include <media/v4l2-event.h> 28 #include <media/v4l2-rect.h> 30 #include "vivid-core.h" [all …]
|
/linux/include/uapi/linux/ |
H A D | rkisp1-config.h | 1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT) */ 16 /* Sensor De-gamma */ 22 /* Auto White Balance Gain */ 44 /* Denoise Pre-Filter */ 46 /* Denoise Pre-Filter Strength */ 129 /* 0-2 for sets 1-3 */ 130 #define RKISP1_CIF_ISP_DPCC_SET_USE_STAGE1_USE_SET(n) ((n) << 0) argument 155 #define RKISP1_CIF_ISP_DPCC_RO_LIMITS_n_G(n, v) ((v) << ((n) * 4)) argument 156 #define RKISP1_CIF_ISP_DPCC_RO_LIMITS_n_RB(n, v) ((v) << ((n) * 4 + 2)) argument 158 #define RKISP1_CIF_ISP_DPCC_RND_OFFS_n_G(n, v) ((v) << ((n) * 4)) argument [all …]
|