diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-05 14:09:33 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-07 20:02:13 +0300 |
commit | b82fe7f025183897880771dd7cdf725ecc148ff2 (patch) | |
tree | c780a0d02442250f3c63f285930065d14268756e /drivers/video/omap2/dss/sdi.c | |
parent | 66a0f9e4ac46144fb86ebe90f58ce6f416a55cd5 (diff) |
OMAPDSS: fix set_timings
set_timings function of DSS's output drivers are not consistent. Some of
them disable the output, set the timings, and re-enable the output. Some
set the timings on the fly, while the output is enabled. And some just
store the given timings, so that they will be taken into use next time
the output is enabled.
We require the DISPC output to be disabled when changing the timings,
and so we can change all the output drivers' set_timings to just store
the given timings.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/sdi.c')
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index 3bf1bfe2958..c87e07ebb16 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c @@ -152,17 +152,7 @@ EXPORT_SYMBOL(omapdss_sdi_display_disable); void omapdss_sdi_set_timings(struct omap_dss_device *dssdev, struct omap_video_timings *timings) { - int r; - sdi.timings = *timings; - - if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) { - omapdss_sdi_display_disable(dssdev); - - r = omapdss_sdi_display_enable(dssdev); - if (r) - DSSERR("failed to set new timings\n"); - } } EXPORT_SYMBOL(omapdss_sdi_set_timings); |