Skip to content

Commit

Permalink
OMAPDSS: OMAPFB: always allow to configure overlay
Browse files Browse the repository at this point in the history
Currently when multiple overlays are active, OMAPFB_SETUP_PLANE fails.
Instead of failing, allow it to configure the first overlay as if there
was only one overlay, the remaining ones will have to be configured in
other ways (sysfs).

This allows overlay-controlling programs (like video players) to function
properly when framebuffer is cloned to another display (like TV).

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Grazvydas Ignotas authored and Tomi Valkeinen committed May 11, 2012
1 parent 0aca3c6 commit b3e68d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/omap2/omapfb/omapfb-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)

DBG("omapfb_setup_plane\n");

if (ofbi->num_overlays != 1) {
if (ofbi->num_overlays == 0) {
r = -EINVAL;
goto out;
}
Expand Down Expand Up @@ -185,7 +185,7 @@ static int omapfb_query_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)
{
struct omapfb_info *ofbi = FB2OFB(fbi);

if (ofbi->num_overlays != 1) {
if (ofbi->num_overlays == 0) {
memset(pi, 0, sizeof(*pi));
} else {
struct omap_overlay *ovl;
Expand Down

0 comments on commit b3e68d3

Please sign in to comment.