Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284906
b: refs/heads/master
c: 3ba2a1c
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Dec 2, 2011
1 parent 8f8e2f9 commit 03764c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf0736681e569b0d3803d68d4f6d00f544f3426a
refs/heads/master: 3ba2a1c01546a4980e7b7742445560ae4afd1fc1
19 changes: 10 additions & 9 deletions trunk/drivers/video/omap2/dss/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,6 @@ struct overlay_cache_data {
struct omap_overlay_info info;

enum omap_channel channel;
bool replication;
bool ilace;

u32 fifo_low;
u32 fifo_high;
Expand Down Expand Up @@ -757,8 +755,10 @@ static int overlay_enabled(struct omap_overlay *ovl)

static int configure_overlay(enum omap_plane plane)
{
struct omap_overlay *ovl;
struct overlay_cache_data *c;
struct omap_overlay_info *oi;
bool ilace, replication;
int r;

DSSDBGF("%d", plane);
Expand All @@ -771,8 +771,14 @@ static int configure_overlay(enum omap_plane plane)
return 0;
}

r = dispc_ovl_setup(plane, oi, c->ilace, c->channel,
c->replication, c->fifo_low, c->fifo_high);
ovl = omap_dss_get_overlay(plane);

replication = dss_use_replication(ovl->manager->device, oi->color_mode);

ilace = ovl->manager->device->type == OMAP_DISPLAY_TYPE_VENC;

r = dispc_ovl_setup(plane, oi, ilace, c->channel,
replication, c->fifo_low, c->fifo_high);
if (r) {
/* this shouldn't happen */
DSSERR("dispc_ovl_setup failed for ovl %d\n", plane);
Expand Down Expand Up @@ -1038,11 +1044,6 @@ static int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
oc->dirty = true;
oc->info = ovl->info;

oc->replication =
dss_use_replication(dssdev, ovl->info.color_mode);

oc->ilace = dssdev->type == OMAP_DISPLAY_TYPE_VENC;

oc->channel = ovl->manager->id;

oc->enabled = true;
Expand Down

0 comments on commit 03764c4

Please sign in to comment.