OSDN Git Service

drm/dsc: Modify DRM helper to return complete DSC color depth capabilities
authorManasi Navare <manasi.d.navare@intel.com>
Tue, 27 Nov 2018 21:41:03 +0000 (13:41 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Tue, 27 Nov 2018 23:30:34 +0000 (15:30 -0800)
commit4d4101c8b32186657c4693e1c33f90679193280b
tree7f9851234183dd55aa650721eeb83f02147aa6ea
parent39e84937b5b447973f2c7322ce4da35775e1bfbf
drm/dsc: Modify DRM helper to return complete DSC color depth capabilities

DSC DPCD color depth register advertises its color depth capabilities
by setting each of the bits that corresponding to a specific color
depth. This patch defines those specific color depths and adds
a helper to return an array of color depth capabilities.

v2:
* Simplify the logic (Ville)

Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Acked-by: Sean Paul <seanpaul@chromium.org> (For merging through
drm-intel)
Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181127214125.17658-1-manasi.d.navare@intel.com
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h