]> git.karo-electronics.de Git - linux-beck.git/commit
drm: Add aspect ratio parsing in DRM layer
authorShashank Sharma <shashank.sharma@intel.com>
Mon, 17 Oct 2016 12:04:38 +0000 (17:34 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Oct 2016 12:23:29 +0000 (14:23 +0200)
commit6dffd431e2296cda08e7e4f0242e02df1d1698cd
treef76da5f47877444cf883b716e681fc6c503d83e7
parent876f43c073d79ad3f14a4cebd1aea1f39fc4daf5
drm: Add aspect ratio parsing in DRM layer

Current DRM layer functions don't parse aspect ratio information
while converting a user mode->kernel mode or vice versa. This
causes modeset to pick mode with wrong aspect ratio, eventually
causing failures in HDMI compliance test cases, due to wrong VIC.

This patch adds aspect ratio information in DRM's mode conversion
and mode comparision functions, to make sure kernel picks mode
with right aspect ratio (as per the VIC).

V2: Addressed review comments from Sean:
- Fix spellings/typo
- No need to handle aspect ratio none
- Add a break, for default case too
V3: Rebase
V4: Added r-b from Jose

Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Lin, Jia <lin.a.jia@intel.com>
Signed-off-by: Akashdeep Sharma <akashdeep.sharma@intel.com>
Reviewed-by: Jim Bride <jim.bride@linux.intel.com>
Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476705880-15600-3-git-send-email-shashank.sharma@intel.com
drivers/gpu/drm/drm_modes.c