diff options
author | David Schalig <dschalig@nvidia.com> | 2011-10-13 12:50:14 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:21:04 -0700 |
commit | 95ab4650e8e1b59055bfb8de8f510cf8b705fab9 (patch) | |
tree | 9a3bc8de1b930ed5022f81b96fcaf729476534cc /include/video | |
parent | 679ddfaa78bbb0619d1149cab23fef21871017f7 (diff) |
video: tegra: dc: ioctl for setting gamma lut
- enable gamma look-up hardware only when needed to save power
- add flags field to ioctl TEGRA_DC_EXT_SET_LUT for forward compatibility
Bug 868060
Change-Id: I690f8b8856e0b1acd6215907ca8bd78ecaf30b17
Reviewed-on: http://git-master/r/57736
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Rebase-Id: Rf6081a9372ba7d6e53a66b9b58a50a62ad409d9a
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/tegra_dc_ext.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h index 77d4e62d70f6..6c1a4e3e59c6 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -180,13 +180,16 @@ struct tegra_dc_ext_csc { */ struct tegra_dc_ext_lut { __u32 win_index; /* window index to set lut for */ + __u32 flags; /* Flag bitmask, see TEGRA_DC_EXT_LUT_FLAGS_* */ __u32 start; /* start index to update lut from */ __u32 len; /* number of valid lut entries */ - __u16* r; /* array of size 16-bit red values */ - __u16* g; /* array of size 16-bit green values */ - __u16* b; /* array of size 16-bit blue values */ + __u16 *r; /* array of 16-bit red values, 0 to reset */ + __u16 *g; /* array of 16-bit green values, 0 to reset */ + __u16 *b; /* array of 16-bit blue values, 0 to reset */ }; +/* tegra_dc_ext_lut.flags - override fb device palette. Default is multiply. */ +#define TEGRA_DC_EXT_LUT_FLAGS_FBOVERRIDE 0x01 #define TEGRA_DC_EXT_FLAGS_ENABLED 1 struct tegra_dc_ext_status { @@ -229,7 +232,7 @@ struct tegra_dc_ext_status { _IOR('D', 0x09, __u32) #define TEGRA_DC_EXT_SET_LUT \ - _IOR('D', 0x0A, struct tegra_dc_ext_lut) + _IOW('D', 0x0A, struct tegra_dc_ext_lut) enum tegra_dc_ext_control_output_type { TEGRA_DC_EXT_DSI, |