Commit 717fd813 authored by Daniel Vetter's avatar Daniel Vetter

drm/color: document NULL values and default settings better

Brought up in a discussion for enabling gamma on fsl-dcu.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Meng Yi <meng.yi@nxp.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160926090437.22676-1-daniel.vetter@ffwll.ch
parent edd420ea
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
* nor use all the elements of the LUT (for example the hardware might * nor use all the elements of the LUT (for example the hardware might
* choose to interpolate between LUT[0] and LUT[4]). * choose to interpolate between LUT[0] and LUT[4]).
* *
* Setting this to NULL (blob property value set to 0) means a
* linear/pass-thru gamma table should be used. This is generally the
* driver boot-up state too.
*
* “DEGAMMA_LUT_SIZE”: * “DEGAMMA_LUT_SIZE”:
* Unsinged range property to give the size of the lookup table to be set * Unsinged range property to give the size of the lookup table to be set
* on the DEGAMMA_LUT property (the size depends on the underlying * on the DEGAMMA_LUT property (the size depends on the underlying
...@@ -54,6 +58,10 @@ ...@@ -54,6 +58,10 @@
* lookup through the gamma LUT. The data is interpreted as a struct * lookup through the gamma LUT. The data is interpreted as a struct
* &drm_color_ctm. * &drm_color_ctm.
* *
* Setting this to NULL (blob property value set to 0) means a
* unit/pass-thru matrix should be used. This is generally the driver
* boot-up state too.
*
* “GAMMA_LUT”: * “GAMMA_LUT”:
* Blob property to set the gamma lookup table (LUT) mapping pixel data * Blob property to set the gamma lookup table (LUT) mapping pixel data
* after the transformation matrix to data sent to the connector. The * after the transformation matrix to data sent to the connector. The
...@@ -62,6 +70,10 @@ ...@@ -62,6 +70,10 @@
* nor use all the elements of the LUT (for example the hardware might * nor use all the elements of the LUT (for example the hardware might
* choose to interpolate between LUT[0] and LUT[4]). * choose to interpolate between LUT[0] and LUT[4]).
* *
* Setting this to NULL (blob property value set to 0) means a
* linear/pass-thru gamma table should be used. This is generally the
* driver boot-up state too.
*
* “GAMMA_LUT_SIZE”: * “GAMMA_LUT_SIZE”:
* Unsigned range property to give the size of the lookup table to be set * Unsigned range property to give the size of the lookup table to be set
* on the GAMMA_LUT property (the size depends on the underlying hardware). * on the GAMMA_LUT property (the size depends on the underlying hardware).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment