HACK: gfx: Adjust HDMI hdisplay/vdisplay values
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Mar 2012 13:25:43 +0000 (15:25 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:30:45 +0000 (12:30 +0300)
commit409f9fd4e3839c8c82cc5db974e7aa37b0eae9f0
tree63425cb141159aae6764270bed9047e7b9c95397
parentd8c64a2ad97d050f7011aab1ef153316ccd6a3b8
HACK: gfx: Adjust HDMI hdisplay/vdisplay values

The HDMI code doesn't follow the KMS desing correctly, hence the values
stored in the mode structure are incorrect. Adjust the "user" mode
hdisplay/vdisplay and their crtc counterparts to match the framebuffer
size. This "fixes" vblank counter comparisons for HDMI, thus fixing page
flip completion detection, and this also allows the overlay to be
clipped "correctly".

This makes assumptions on how the panel fitter willl be programmed.
Based on a cursory examination of the HDMI code, it will only work
as long as the IPIL_TIMING_SCALE_ASPECT scaling mode is selected.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/staging/mrst/drv/otm_hdmi/os/android/android_hdmi.c