On Fri, Sep 27, 2019 at 05:28:03PM +0300, Tomi Valkeinen wrote:
On 27/09/2019 15:44, Daniel Stone wrote:
Hi Linus,
On Fri, 27 Sep 2019 at 13:37, Linus Walleij linus.walleij@linaro.org wrote:
Also the ILI9322 can actually set up gamma correction which is very nice for professional applications. I haven't seen any way for DRM to do gamma correction properly or any framework for it to adjust and propagate gamma to/from userspace (seems like another enormous task), but I am pretty sure it will be there one of these days so I put in some comments and placeholders.
Gamma correction has been supported since approximately the dawn of time with a 3x8-bit LUT.
But, afaik, only in the display controller side. I don't think we have means to have any properties for the panels or bridges.
I guess would need some semi-elaborate negotiation dance to make sure you only correct in either the bridge/panel or in the crtc, but should be doable. I don't think we need a new property or change anything with the uapi here, just kernel internals. -Daniel