summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/venc_panel.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-08-16 11:56:31 +0530
committerArchit Taneja <archit@ti.com>2012-08-16 18:47:52 +0530
commit89e7195634e563b72288bf13ef4dbdf4709d2d08 (patch)
tree8f786f5c3510ca8a70725e5c914ec5ad2ae4171c /drivers/video/omap2/dss/venc_panel.c
parentfebe2905d08b238f4ee2eb7e99c402bf85f0f70f (diff)
OMAPDSS: VENC: Maintian copy of video output polarity info in private data
The VENC driver currently relies on the omap_dss_device struct to configure the video output polarity. This makes the VENC interface driver dependent on the omap_dss_device struct. Make the VENC driver data maintain it's own polarity field. A panel driver is expected to call omapdss_venc_invert_vid_out_polarity() before enabling the interface. Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/venc_panel.c')
-rw-r--r--drivers/video/omap2/dss/venc_panel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/venc_panel.c b/drivers/video/omap2/dss/venc_panel.c
index ef213618a25..d55b8784ecf 100644
--- a/drivers/video/omap2/dss/venc_panel.c
+++ b/drivers/video/omap2/dss/venc_panel.c
@@ -130,6 +130,8 @@ static int venc_panel_enable(struct omap_dss_device *dssdev)
omapdss_venc_set_timings(dssdev, &dssdev->panel.timings);
omapdss_venc_set_type(dssdev, dssdev->phy.venc.type);
+ omapdss_venc_invert_vid_out_polarity(dssdev,
+ dssdev->phy.venc.invert_polarity);
r = omapdss_venc_display_enable(dssdev);
if (r)