]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/gpu/drm/drm_edid.c
drm/edid: Fill PAR in AVI infoframe based on CEA mode list
authorVandana Kannan <vandana.kannan@intel.com>
Tue, 1 Apr 2014 10:56:59 +0000 (16:26 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Apr 2014 09:08:49 +0000 (11:08 +0200)
commit0967e6a5070e336507ce52f09f7297413b966981
tree517b3354715342aa6cb77b2970f6b0d7e91e2897
parenta798c10faf62a505d24e5f6213fbaf904a39623f
drm/edid: Fill PAR in AVI infoframe based on CEA mode list

Populate PAR in infoframe structure. If there is a user setting for PAR, then
that value is set. Else, value is taken from CEA mode list if VIC is found.
Else, PAR is calculated from resolution. If none of these conditions are
satisfied, PAR is NONE as per initialization.

v2: Removed the part which sets PAR according to user input, based on
Daniel's review comments.

A separate patch will be submitted to create a property that would enable a
user space app to set aspect ratio for AVI infoframe.

v2: Removed the part which sets PAR according to user input, based on
Daniel's review comments.

v3: Removed calculation of PAR for non-CEA modes as per discussion with
Ville.

A separate patch will be submitted to create a property that would enable a
user space app to set aspect ratio for AVI infoframe.

Signed-off-by: Vandana Kannan <vandana.kannan@intel.com>
Cc: Jesse Barnes <jesse.barnes@intel.com>
Cc: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Squash in fixup for htmldocs.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c
include/drm/drm_crtc.h