]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: VENC: Maintain our own timings field in driver data
authorArchit Taneja <archit@ti.com>
Fri, 20 Jul 2012 10:45:44 +0000 (16:15 +0530)
committerArchit Taneja <archit@ti.com>
Wed, 15 Aug 2012 10:20:50 +0000 (15:50 +0530)
commitf9c81fa3f4536a881013d868649f686ae4cfb471
treec4a652a840e997a5c0f201cb877d32988a0991bc
parentfeca69bdc9b26b40ee9af5d9d8f8c9621dd180ff
OMAPDSS: VENC: Maintain our own timings field in driver data

The VENC driver currently relies on the timings in omap_dss_device struct to
configure the DISPC and VENC blocks accordingly. This makes the VENC interface
driver dependent on the omap_dss_device struct.

Make the VENC driver data maintain it's own timings field. The panel driver is
expected to call omapdss_venc_set_timings() to set these timings before the
panel is enabled. Call omapdss_venc_set_timings() before enabling
venc output, this is done to atleast have the venc output configured to the
panel's default timings if the DSS user didn't explicitly call the venc panel
driver's set_timings op.

Make the VENC panel driver configure the new timings is the omap_dss_device
struct(dssdev->panel.timings). The VENC driver is responsible for maintaining
only it's own copy of timings.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/venc.c
drivers/video/omap2/dss/venc_panel.c