diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-03-21 14:32:29 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:13 -0800 |
commit | 491cb2c5948ccf7ce53c81dbca8d19475667a400 (patch) | |
tree | b9fbc8fd153ccb44fbfcd3036a86b5126fe18ca0 /arch/arm/mach-tegra/include/mach/dc.h | |
parent | d69bf1aa9ddf62411b4e964f69d9f7a4ffb91816 (diff) |
video: tegra: Add userspace CSC control
This adds configurability of the per-window color space conversion
support in the Tegra display controller through the dc extension
interface. The CSC matrix defaults to its previously-hardcoded values,
but can be overridden by userspace.
bug 818525
Original-Change-Id: I00d8e48dd38a40e5b8c36d4624d31c834e5cd9de
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/40527
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R1f445ab544b4c06f56dde1e3f0e9db3c930a9c14
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/dc.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index 8500619254e9..2482100c8cbe 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -349,6 +349,17 @@ struct tegra_dc_out { struct tegra_dc; struct nvmap_handle_ref; +struct tegra_dc_csc { + unsigned short yof; + unsigned short kyrgb; + unsigned short kur; + unsigned short kvr; + unsigned short kug; + unsigned short kvg; + unsigned short kub; + unsigned short kvb; +}; + struct tegra_dc_win { u8 idx; u8 fmt; @@ -371,6 +382,8 @@ struct tegra_dc_win { unsigned out_h; unsigned z; + struct tegra_dc_csc csc; + int dirty; int underflows; struct tegra_dc *dc; @@ -482,4 +495,6 @@ struct tegra_dc_pwm_params { void tegra_dc_config_pwm(struct tegra_dc *dc, struct tegra_dc_pwm_params *cfg); +int tegra_dc_update_csc(struct tegra_dc *dc, int win_index); + #endif |