Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344677
b: refs/heads/master
c: 6b6f1ed
h: refs/heads/master
i:
  344675: ba6a96e
v: v3
  • Loading branch information
Tomi Valkeinen committed Dec 7, 2012
1 parent aa2da3c commit 46eff38
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 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: 486c0e17b7d1a4f8f057a97f2e48f715208f950d
refs/heads/master: 6b6f1edfdb6c41e630e4a70d64a8e8817b3170c2
38 changes: 24 additions & 14 deletions trunk/drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2349,27 +2349,37 @@ static int omapfb_init_display(struct omapfb2_device *fbdev,
}

static int omapfb_init_connections(struct omapfb2_device *fbdev,
struct omap_dss_device *dssdev)
struct omap_dss_device *def_dssdev)
{
int i, r;
struct omap_overlay_manager *mgr = NULL;
struct omap_overlay_manager *mgr;

for (i = 0; i < fbdev->num_managers; i++) {
mgr = fbdev->managers[i];

if (dssdev->channel == mgr->id)
break;
if (!def_dssdev->output) {
dev_err(fbdev->dev, "no output for the default display\n");
return -EINVAL;
}

if (i == fbdev->num_managers)
return -ENODEV;
for (i = 0; i < fbdev->num_displays; ++i) {
struct omap_dss_device *dssdev = fbdev->displays[i].dssdev;
struct omap_dss_output *out = dssdev->output;

if (mgr->output)
mgr->unset_output(mgr);
mgr = omap_dss_get_overlay_manager(dssdev->channel);

r = mgr->set_output(mgr, dssdev->output);
if (r)
return r;
if (!mgr || !out)
continue;

if (mgr->output)
mgr->unset_output(mgr);

mgr->set_output(mgr, out);
}

mgr = def_dssdev->output->manager;

if (!mgr) {
dev_err(fbdev->dev, "no ovl manager for the default display\n");
return -EINVAL;
}

for (i = 0; i < fbdev->num_overlays; i++) {
struct omap_overlay *ovl = fbdev->overlays[i];
Expand Down

0 comments on commit 46eff38

Please sign in to comment.