diff options
author | Archit Taneja <archit@ti.com> | 2012-05-24 05:38:54 -0400 |
---|---|---|
committer | Archit Taneja <archit@ti.com> | 2012-06-29 06:57:58 -0400 |
commit | 75bac5d1a2776d61a64d75fd19092dff724016a0 (patch) | |
tree | 6c9dbbd236c4488d0630490910db2c3ee66ecfa3 /drivers/video | |
parent | 6e5435958c6ee4fa2142d298d836dd78b8353f66 (diff) |
OMAPDSS: APPLY: Remove usage of omap_dss_device from manual/auto update checks
APPLY needs to know at certain places whether an overlay manager is in manual
or auto update mode. The caps of the connected omap_dss_device were used to
check that.
A LCD manager is in manual update if stallmode is enabled for that manager. TV
managers for now always auto update.
Return the value of stallmode parameter in the private data 'lcd_confg' in
mgr_manual_update() and ovl_manual_update(), for TV managers stallmode field
will be false by default.
Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/apply.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index 8c94fbe21822..b237b575c70b 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c | |||
@@ -182,14 +182,23 @@ void dss_apply_init(void) | |||
182 | mp->lcd_config.clock_info.pck_div = 1; | 182 | mp->lcd_config.clock_info.pck_div = 1; |
183 | } | 183 | } |
184 | 184 | ||
185 | /* | ||
186 | * A LCD manager's stallmode decides whether it is in manual or auto update. TV | ||
187 | * manager is always auto update, stallmode field for TV manager is false by | ||
188 | * default | ||
189 | */ | ||
185 | static bool ovl_manual_update(struct omap_overlay *ovl) | 190 | static bool ovl_manual_update(struct omap_overlay *ovl) |
186 | { | 191 | { |
187 | return ovl->manager->device->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE; | 192 | struct mgr_priv_data *mp = get_mgr_priv(ovl->manager); |
193 | |||
194 | return mp->lcd_config.stallmode; | ||
188 | } | 195 | } |
189 | 196 | ||
190 | static bool mgr_manual_update(struct omap_overlay_manager *mgr) | 197 | static bool mgr_manual_update(struct omap_overlay_manager *mgr) |
191 | { | 198 | { |
192 | return mgr->device->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE; | 199 | struct mgr_priv_data *mp = get_mgr_priv(mgr); |
200 | |||
201 | return mp->lcd_config.stallmode; | ||
193 | } | 202 | } |
194 | 203 | ||
195 | static int dss_check_settings_low(struct omap_overlay_manager *mgr, | 204 | static int dss_check_settings_low(struct omap_overlay_manager *mgr, |