drm/exynos: Fix HDMI for smaller resolutions
authorSean Paul <seanpaul@chromium.org>
Tue, 14 Aug 2012 23:57:43 +0000 (16:57 -0700)
committerGerrit <chrome-bot@google.com>
Wed, 15 Aug 2012 00:57:26 +0000 (17:57 -0700)
commit5e2bf1ecab38199d271dbc997358ab38b571c69d
tree386ab3498d4bebd2d7c2e63055e1a02b7f6c847b
parentadd52cca2810b40fd13495ad8c091b96135982f7
drm/exynos: Fix HDMI for smaller resolutions

This patch fixes HDMI output for resolutions smaller than the LCD. The
problem is that the pitch is slightly larger than the LCD width, which
results in the HDMI scanout being slighlty too large. This shifts each
line right by the difference between pitch and width resulting in a
corrupted screen.

BUG=chrome-os-partner:12606
TEST=Tested on snow with 720p/480p

Change-Id: I1764b0c3d4c699a9a87f083ce74331f99f0bc387
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/30351
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/drm/exynos/exynos_mixer.c