summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorDavid Schalig <dschalig@nvidia.com>2011-10-25 19:28:24 +0900
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:35 -0800
commitf80e81610f4e2e3a9051b465a9176ac70f6913f1 (patch)
tree87e9e17de05b511dc97b6c1c9a0fb3b92ee69732 /include/video
parentc48cfa76bc9c61ae99b663519075283bd8e290c1 (diff)
video: tegra: dc: support global fbdev gamma table
Add support to set a global gamma correction table via fbdev cmap API. The 3 Tegra DC windows have their own local gamma tables, which can either override or alter the global table. Bug 868060 Change-Id: I0be1c5e4afa8fd8c010b772c7808c883c0848ab4 Reviewed-on: http://git-master/r/60201 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R7e613b1c8ac469242172bd81db9dfba25176e0c3
Diffstat (limited to 'include/video')
-rw-r--r--include/video/tegra_dc_ext.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h
index 6c1a4e3e59c6..380b026701d7 100644
--- a/include/video/tegra_dc_ext.h
+++ b/include/video/tegra_dc_ext.h
@@ -174,6 +174,8 @@ struct tegra_dc_ext_csc {
* To convert 8-bit per channel RGB values to 16-bit, duplicate the 8 bits
* in low and high byte, e.g. r=r|(r<<8)
*
+ * To just update flags, set len to 0.
+ *
* Current Tegra DC hardware supports 8-bit per channel to 8-bit per channel,
* and each hardware window (overlay) uses its own lookup table.
*
@@ -188,7 +190,9 @@ struct tegra_dc_ext_lut {
__u16 *b; /* array of 16-bit blue values, 0 to reset */
};
-/* tegra_dc_ext_lut.flags - override fb device palette. Default is multiply. */
+/* tegra_dc_ext_lut.flags - override global fb device lookup table.
+ * Default behaviour is double-lookup.
+ */
#define TEGRA_DC_EXT_LUT_FLAGS_FBOVERRIDE 0x01
#define TEGRA_DC_EXT_FLAGS_ENABLED 1