media updates for v5.7-rc1
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE+QmuaPwR3wnBdVwACF8+vY7k4RUFAl6Bvm0ACgkQCF8+vY7k 4RViMQ//baNJyAA8/Hpxz1w5+nL5hsTOhf2PcPgnCLkRVQnIiKMZoq7AS5KWtbqu im0SM6nWduGc2T/44Ew13YmBnuWMdXL9Gs8XtAkNakgSV1UM+A3pRuOWRYCyU3Ts 1QDsc3N7oY9cvyJGWOlqdcA4gp4AaKxjS6M6Z18wYBk/jYSCcj4ZVecT89DYeeM7 wFORkv/xSdgC3eoKWEwTyglzUmrXKrbfHdcNWrQBg+1SN3WrMYQWCL6nSYMqn0Vu f9L5E6jUSx9s6+apxS0OUQmDj78RM1JCEY1P8lgc3tAtVJ+X3yZbxwtpcvujhFPv c48NUQeyxAJc7evarvkd73Gwl4buujqHSgiRUovHwqUXHJuGZ3PBTryV9HzbmYYy EeHS/23t09F3j9zYtuoDNFIED03Mi+TNeS04cq8OIfwNl7xpUSEV0S/wd11V2308 cfm6lsogGE9HRbaIxCHgx4AiGFVhbpK1OQt66iYze8r/wyxnN8MVOHGWw+eI4LRK 9gwh7Wx37k6uCrjfOnLSgx7kcJ+mxSZEYyHJZqqtPm9H1SC68GOxhL/S3Zu7arvK eiwFfxJBiunCEfauOx28kaAdvBZVyEvYeDFYl/k+q4DCIGjvK0FXud6QRjNXv24S qUXYZKPUALTFOpbkQ3IQiBOQNM4NhF15RzCqRUptVnlF05MSywg= =Ve8R -----END PGP SIGNATURE----- Merge tag 'media/v5.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media Pull media updates from Mauro Carvalho Chehab: - New sensor driver: imx219 - Support for some new pixelformats - Support for Sun8i SoC - Added more codecs to meson vdec driver - Prepare for removing the legacy usbvision driver by moving it to staging. This driver has issues and use legacy core APIs. If nobody steps up to address those, it is time for its retirement. - Several cleanups and improvements on drivers, with the addition of new supported boards * tag 'media/v5.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (236 commits) media: venus: firmware: Ignore secure call error on first resume media: mtk-vpu: load vpu firmware from the new location media: i2c: video-i2c: fix build errors due to 'imply hwmon' media: MAINTAINERS: add myself to co-maintain Hantro G1/G2 for i.MX8MQ media: hantro: add initial i.MX8MQ support media: dt-bindings: Document i.MX8MQ VPU bindings media: vivid: fix incorrect PA assignment to HDMI outputs media: hantro: Add linux-rockchip mailing list to MAINTAINERS media: cedrus: h264: Fix 4K decoding on H6 media: siano: Use scnprintf() for avoiding potential buffer overflow media: rc: Use scnprintf() for avoiding potential buffer overflow media: allegro: create new struct for channel parameters media: allegro: move mail definitions to separate file media: allegro: pass buffers through firmware media: allegro: verify source and destination buffer in VCU response media: allegro: handle dependency of bitrate and bitrate_peak media: allegro: read bitrate mode directly from control media: allegro: make QP configurable media: allegro: make frame rate configurable media: allegro: skip filler data if possible ...
This commit is contained in:
commit
063d194224
343 changed files with 14893 additions and 3026 deletions
58
include/linux/atmel-isc-media.h
Normal file
58
include/linux/atmel-isc-media.h
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries
|
||||
*
|
||||
* Author: Eugen Hristev <eugen.hristev@microchip.com>
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_ATMEL_ISC_MEDIA_H__
|
||||
#define __LINUX_ATMEL_ISC_MEDIA_H__
|
||||
|
||||
/*
|
||||
* There are 8 controls available:
|
||||
* 4 gain controls, sliders, for each of the BAYER components: R, B, GR, GB.
|
||||
* These gains are multipliers for each component, in format unsigned 0:4:9 with
|
||||
* a default value of 512 (1.0 multiplier).
|
||||
* 4 offset controls, sliders, for each of the BAYER components: R, B, GR, GB.
|
||||
* These offsets are added/substracted from each component, in format signed
|
||||
* 1:12:0 with a default value of 0 (+/- 0)
|
||||
*
|
||||
* To expose this to userspace, added 8 custom controls, in an auto cluster.
|
||||
*
|
||||
* To summarize the functionality:
|
||||
* The auto cluster switch is the auto white balance control, and it works
|
||||
* like this:
|
||||
* AWB == 1: autowhitebalance is on, the do_white_balance button is inactive,
|
||||
* the gains/offsets are inactive, but volatile and readable.
|
||||
* Thus, the results of the whitebalance algorithm are available to userspace to
|
||||
* read at any time.
|
||||
* AWB == 0: autowhitebalance is off, cluster is in manual mode, user can
|
||||
* configure the gain/offsets directly.
|
||||
* More than that, if the do_white_balance button is
|
||||
* pressed, the driver will perform one-time-adjustment, (preferably with color
|
||||
* checker card) and the userspace can read again the new values.
|
||||
*
|
||||
* With this feature, the userspace can save the coefficients and reinstall them
|
||||
* for example after reboot or reprobing the driver.
|
||||
*/
|
||||
|
||||
enum atmel_isc_ctrl_id {
|
||||
/* Red component gain control */
|
||||
ISC_CID_R_GAIN = (V4L2_CID_USER_ATMEL_ISC_BASE + 0),
|
||||
/* Blue component gain control */
|
||||
ISC_CID_B_GAIN,
|
||||
/* Green Red component gain control */
|
||||
ISC_CID_GR_GAIN,
|
||||
/* Green Blue gain control */
|
||||
ISC_CID_GB_GAIN,
|
||||
/* Red component offset control */
|
||||
ISC_CID_R_OFFSET,
|
||||
/* Blue component offset control */
|
||||
ISC_CID_B_OFFSET,
|
||||
/* Green Red component offset control */
|
||||
ISC_CID_GR_OFFSET,
|
||||
/* Green Blue component offset control */
|
||||
ISC_CID_GB_OFFSET,
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue