diff options
Diffstat (limited to 'drivers/gpu/drm/tegra/hdmi.c')
-rw-r--r-- | drivers/gpu/drm/tegra/hdmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index ab4016412bbf..81ea934214f1 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c | |||
@@ -479,7 +479,7 @@ static void tegra_hdmi_setup_avi_infoframe(struct tegra_hdmi *hdmi, | |||
479 | return; | 479 | return; |
480 | } | 480 | } |
481 | 481 | ||
482 | h_front_porch = mode->htotal - mode->hsync_end; | 482 | h_front_porch = mode->hsync_start - mode->hdisplay; |
483 | memset(&frame, 0, sizeof(frame)); | 483 | memset(&frame, 0, sizeof(frame)); |
484 | frame.r = HDMI_AVI_R_SAME; | 484 | frame.r = HDMI_AVI_R_SAME; |
485 | 485 | ||
@@ -634,8 +634,8 @@ static int tegra_output_hdmi_enable(struct tegra_output *output) | |||
634 | 634 | ||
635 | pclk = mode->clock * 1000; | 635 | pclk = mode->clock * 1000; |
636 | h_sync_width = mode->hsync_end - mode->hsync_start; | 636 | h_sync_width = mode->hsync_end - mode->hsync_start; |
637 | h_front_porch = mode->htotal - mode->hsync_end; | 637 | h_back_porch = mode->htotal - mode->hsync_end; |
638 | h_back_porch = mode->hsync_start - mode->hdisplay; | 638 | h_front_porch = mode->hsync_start - mode->hdisplay; |
639 | 639 | ||
640 | err = regulator_enable(hdmi->vdd); | 640 | err = regulator_enable(hdmi->vdd); |
641 | if (err < 0) { | 641 | if (err < 0) { |