Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284951
b: refs/heads/master
c: 841c09c
h: refs/heads/master
i:
  284949: 0d1a1ed
  284947: ae0d931
  284943: d9f003b
v: v3
  • Loading branch information
Tomi Valkeinen committed Dec 2, 2011
1 parent d01c0bc commit 40b4aa9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 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: ff4733dcf56480bebcd3801adde27213b893635d
refs/heads/master: 841c09c7975c67fe7741564d98265de28a5764d0
19 changes: 15 additions & 4 deletions trunk/drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,19 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
return r;
}

static void dss_apply_ovl_enable(struct omap_overlay *ovl, bool enable)
{
struct ovl_priv_data *op;

op = get_ovl_priv(ovl);

if (op->enabled == enable)
return;

op->enabled = enable;
op->extra_info_dirty = true;
}

static void dss_ovl_setup_fifo(struct omap_overlay *ovl)
{
struct ovl_priv_data *op = get_ovl_priv(ovl);
Expand Down Expand Up @@ -999,8 +1012,7 @@ int dss_ovl_enable(struct omap_overlay *ovl)

spin_lock_irqsave(&data_lock, flags);

op->enabled = true;
op->extra_info_dirty = true;
dss_apply_ovl_enable(ovl, true);

dss_ovl_setup_fifo(ovl);

Expand Down Expand Up @@ -1031,8 +1043,7 @@ int dss_ovl_disable(struct omap_overlay *ovl)

spin_lock_irqsave(&data_lock, flags);

op->enabled = false;
op->extra_info_dirty = true;
dss_apply_ovl_enable(ovl, false);

dss_write_regs();

Expand Down

0 comments on commit 40b4aa9

Please sign in to comment.