aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-08-31 07:47:11 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 09:16:43 -0400
commit3870c909f2fc880dece633772f2551aa70d26979 (patch)
treef025e0709238729d78c006f7688e183274b72b2d /drivers/video
parente82b090b80a41f2b5d9daec4c73edd76e2865419 (diff)
OMAP: DSS2: HDMI: improve hdmi output enable
Enabling HDMI output often causes sync lost errors, and almost always causes timeout errors being printed from dispc_mgr_enable_digit_out(). The sync lost problem seems to go lessen greatly if we first enable the HDMI output, and only then enable the DISPC output. However, as this is only based on observations, the fix may not be perfect as the problem may lie somewhere else. Nevertheless, HDMI works better with this patch. This will also fix the dispc's dispc_mgr_enable_digit_out(), as the code waits for two VSYNCs after enabling the output. If the HDMI output is disabled (as it was previously), there are no VSYNCs and dispc_mgr_enable_digit_out() will print timeout errors. Cc: Mythri P K <mythripk@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/dss/hdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 4752137b226a..06a78b2ab690 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -529,10 +529,10 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
529 dispc_set_digit_size(dssdev->panel.timings.x_res, 529 dispc_set_digit_size(dssdev->panel.timings.x_res,
530 dssdev->panel.timings.y_res); 530 dssdev->panel.timings.y_res);
531 531
532 dispc_mgr_enable(OMAP_DSS_CHANNEL_DIGIT, 1);
533
534 hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 1); 532 hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 1);
535 533
534 dispc_mgr_enable(OMAP_DSS_CHANNEL_DIGIT, 1);
535
536 return 0; 536 return 0;
537err: 537err:
538 hdmi_runtime_put(); 538 hdmi_runtime_put();