[media] media: coda: allocate internal framebuffers separately from v4l2 buffers
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 20 Jul 2012 11:54:29 +0000 (08:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Sep 2012 19:34:48 +0000 (16:34 -0300)
commitec25f68d534798e4bc98b6c115757956422b2e45
tree7be41434853f05a0fb0926e85eca3be4fae55b08
parent1043667b1763feac06654c9bf7263b215df2c893
[media] media: coda: allocate internal framebuffers separately from v4l2 buffers

Some codecs running on CODA need internal framebuffers for reference and
reconstructed frames. Allocate them separately, and do not use the input
vb2_buffers: those will be handed off to userspace regularly, and there
is no way to signal to the CODA which of the registered framebuffers are
off limits. As a consequence, userspace is now free to choose the number
of v4l2 buffers.
This patch also includes the code to set up the parameter buffer for
CODA7 and above with 64-bit AXI bus width.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Javier Martin <javier.martin@vista-silicon.com>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c