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 <redacted>
---
drivers/video/omap2/omapfb/omapfb-ioctl.c | 36 ++++++++++------------------
1 files changed, 13 insertions(+), 23 deletions(-)
@@ -70,11 +70,6 @@ static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)DBG("omapfb_setup_plane\n");-if(ofbi->num_overlays!=1){-r=-EINVAL;-gotoout;-}-/* XXX uses only the first overlay */ovl=ofbi->overlays[0];
From: Tomi Valkeinen <hidden> Date: 2012-05-10 10:28:28
On Fri, 2012-05-04 at 18:16 +0300, Grazvydas Ignotas wrote:
quoted hunk
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 <redacted>
---
drivers/video/omap2/omapfb/omapfb-ioctl.c | 36 ++++++++++------------------
1 files changed, 13 insertions(+), 23 deletions(-)
@@ -70,11 +70,6 @@ static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)DBG("omapfb_setup_plane\n");-if(ofbi->num_overlays!=1){-r=-EINVAL;-gotoout;-}-/* XXX uses only the first overlay */ovl=ofbi->overlays[0];
What if there are no overlays? I'm not quite sure about it, but I think
it's possible.
Tomi
On Thu, May 10, 2012 at 1:28 PM, Tomi Valkeinen [off-list ref] wrote:
On Fri, 2012-05-04 at 18:16 +0300, Grazvydas Ignotas wrote:
quoted
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 <redacted>
---
drivers/video/omap2/omapfb/omapfb-ioctl.c | 36 ++++++++++------------------
1 files changed, 13 insertions(+), 23 deletions(-)