Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333589
b: refs/heads/master
c: 8f1f736
h: refs/heads/master
i:
  333587: 04e86a8
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 26, 2012
1 parent 3f0d12f commit 1df0fb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: 1db39c0a28483582c165b4f0ea07ca4a600a4630
refs/heads/master: 8f1f736c4521ac709d4c5805fa31d395804b162a
14 changes: 9 additions & 5 deletions trunk/drivers/video/omap2/dss/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ static const struct venc_config *venc_timings_to_config(

static int venc_power_on(struct omap_dss_device *dssdev)
{
struct omap_overlay_manager *mgr = dssdev->output->manager;
u32 l;
int r;

Expand All @@ -454,13 +455,13 @@ static int venc_power_on(struct omap_dss_device *dssdev)

venc_write_reg(VENC_OUTPUT_CONTROL, l);

dss_mgr_set_timings(dssdev->manager, &venc.timings);
dss_mgr_set_timings(mgr, &venc.timings);

r = regulator_enable(venc.vdda_dac_reg);
if (r)
goto err1;

r = dss_mgr_enable(dssdev->manager);
r = dss_mgr_enable(mgr);
if (r)
goto err2;

Expand All @@ -479,10 +480,12 @@ static int venc_power_on(struct omap_dss_device *dssdev)

static void venc_power_off(struct omap_dss_device *dssdev)
{
struct omap_overlay_manager *mgr = dssdev->output->manager;

venc_write_reg(VENC_OUTPUT_CONTROL, 0);
dss_set_dac_pwrdn_bgz(0);

dss_mgr_disable(dssdev->manager);
dss_mgr_disable(mgr);

regulator_disable(venc.vdda_dac_reg);

Expand All @@ -497,14 +500,15 @@ unsigned long venc_get_pixel_clock(void)

int omapdss_venc_display_enable(struct omap_dss_device *dssdev)
{
struct omap_dss_output *out = dssdev->output;
int r;

DSSDBG("venc_display_enable\n");

mutex_lock(&venc.venc_lock);

if (dssdev->manager == NULL) {
DSSERR("Failed to enable display: no manager\n");
if (out == NULL || out->manager == NULL) {
DSSERR("Failed to enable display: no output/manager\n");
r = -ENODEV;
goto err0;
}
Expand Down

0 comments on commit 1df0fb7

Please sign in to comment.