MLK-17655: drm: imx: hdp: send HDR metadata when property is set
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 2 Mar 2018 08:56:15 +0000 (10:56 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitd38b5075c4836862f57bf707f64d994996e91487
tree0b1e68803e43dcc050503bc26c18ce4f3088e974
parent927198667acaf73dd1075ab3999c412fc542f3e0
MLK-17655: drm: imx: hdp: send HDR metadata when property is set

HDR metadata infoframe was sent only when doing a mode set. However,
kmssink is using the same device as Weston and mode setting messes up
with Weston's plane state.

This patch allows for the HDR metadata to be sent out to the sink when
the property is set. Hence, no need for a mode set.

Also, the older functionality allowed only for 4K@60 to be used for HDR.
However, HDR is not about resolution. This patch will also allow to go
to HDR mode in other resolutions as well.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/hdp/imx-hdp.c
drivers/gpu/drm/imx/hdp/imx-hdp.h