Skip to content

Commit

Permalink
[media] OMAP_VOUT: Increase MAX_DISPLAYS to a larger value
Browse files Browse the repository at this point in the history
There is no limit to the number of displays that can registered with DSS2. The
current value of MAX_DISPLAYS is 3, set this to 10 so that the 'displays'
member of omap2video_device struct can store more omap_dss_device pointers.

This fixes a crash seen in omap_vout_probe when DSS2 registers for more than 3
displays.

Signed-off-by: Archit Taneja <archit@ti.com>
Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Archit Taneja authored and Mauro Carvalho Chehab committed Nov 7, 2011
1 parent 881a964 commit cfb128e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/omap/omap_voutdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define MAC_VRFB_CTXS 4
#define MAX_VOUT_DEV 2
#define MAX_OVLS 3
#define MAX_DISPLAYS 3
#define MAX_DISPLAYS 10
#define MAX_MANAGERS 3

#define QQVGA_WIDTH 160
Expand Down

0 comments on commit cfb128e

Please sign in to comment.