[media] media-entity: increase max number of PADs
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 16 Dec 2015 17:18:25 +0000 (15:18 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:24 +0000 (12:19 -0200)
The DVB drivers may have 257 PADs. Get the next power of two
that would accomodate that amount.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c

index f63be23..eb38bc3 100644 (file)
@@ -261,7 +261,7 @@ static struct media_entity *stack_pop(struct media_entity_graph *graph)
 /*
  * TODO: Get rid of this.
  */
-#define MEDIA_ENTITY_MAX_PADS          63
+#define MEDIA_ENTITY_MAX_PADS          512
 
 /**
  * media_entity_graph_walk_init - Allocate resources for graph walk