[PATCH 2/4] drm/omapdrm: Add gamma table support to DSS dispc

2016-05-20 Thread Tomi Valkeinen
On 20/05/16 16:14, Jyri Sarha wrote: > On 05/20/16 15:51, Tomi Valkeinen wrote: >>> +u32 dispc_mgr_gamma_size(enum omap_channel channel) +{ + const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; + + if (!dss_has_feature(FEAT_GAMMA_TABLE)) + return 0;

[PATCH 2/4] drm/omapdrm: Add gamma table support to DSS dispc

2016-05-20 Thread Jyri Sarha
On 05/20/16 15:51, Tomi Valkeinen wrote: >> +u32 dispc_mgr_gamma_size(enum omap_channel channel) >> > +{ >> > + const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; >> > + >> > + if (!dss_has_feature(FEAT_GAMMA_TABLE)) >> > + return 0; >> > + > This should probably check the

[PATCH 2/4] drm/omapdrm: Add gamma table support to DSS dispc

2016-05-20 Thread Tomi Valkeinen
Hi, On 20/05/16 09:35, Jyri Sarha wrote: > Add gamma table support to DSS dispc. > > DSS driver initializes the default gamma table at component bind time > and holds a copy of all gamma tables in it's internal data structure. "its" > Each call to dispc_mgr_set_gamma() updates the internal tabl

[PATCH 2/4] drm/omapdrm: Add gamma table support to DSS dispc

2016-05-20 Thread Jyri Sarha
Add gamma table support to DSS dispc. DSS driver initializes the default gamma table at component bind time and holds a copy of all gamma tables in it's internal data structure. Each call to dispc_mgr_set_gamma() updates the internal table and triggers write the HW, if it is enabled. The tables a