Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251022
b: refs/heads/master
c: 14572c6
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed May 11, 2011
1 parent d14de86 commit ffe4367
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bcd8e374b5d39d481d00936e183b0ded99a5f31a
refs/heads/master: 14572c6356dc4361231ee8f4402468c1f36d2c34
12 changes: 12 additions & 0 deletions trunk/drivers/video/omap2/dss/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ static int venc_panel_enable(struct omap_dss_device *dssdev)

mutex_lock(&venc.venc_lock);

r = omap_dss_start_device(dssdev);
if (r) {
DSSERR("failed to start device\n");
goto err0;
}

if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED) {
r = -EINVAL;
goto err1;
Expand All @@ -487,7 +493,11 @@ static int venc_panel_enable(struct omap_dss_device *dssdev)

dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;

mutex_unlock(&venc.venc_lock);
return 0;
err1:
omap_dss_stop_device(dssdev);
err0:
mutex_unlock(&venc.venc_lock);

return r;
Expand All @@ -511,6 +521,8 @@ static void venc_panel_disable(struct omap_dss_device *dssdev)
venc_power_off(dssdev);

dssdev->state = OMAP_DSS_DISPLAY_DISABLED;

omap_dss_stop_device(dssdev);
end:
mutex_unlock(&venc.venc_lock);
}
Expand Down

0 comments on commit ffe4367

Please sign in to comment.