[PATCH] [media] media-entity: increase max number of PADs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 drivers/media/media-entity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index d3160224db33..ae70b6f54b18 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -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
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux