]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omapdrm: Implement gamma_lut atomic crtc properties
authorJyri Sarha <jsarha@ti.com>
Tue, 7 Jun 2016 12:09:17 +0000 (15:09 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 7 Jun 2016 14:10:49 +0000 (17:10 +0300)
commitf532e3a133d90143e2c63637776896fed0384c12
treece3a1452c730b736a62370ad17dcf43b0408f611
parente26b03d36b47c9a0f8840fa18a6c15e59265ea33
drm/omapdrm: Implement gamma_lut atomic crtc properties

Implement gamma_lut atomic crtc properties, set crtc gamma size to 256
for all crtcs and use drm_atomic_helper_legacy_gamma_set() as
gamma_set func. The tv-out crtc has 1024 element gamma table (with
10bit precision) in HW, but current Xorg server does not accept
anything else but 256 elements so that is used for all CRTCs. The dss
dispc API converts table of any length for HW and uses linear
interpolation in the process. The default gamma table is restored
if gamma_lut property is deleted.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c