mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[media] media: videobuf2: Change queue_setup argument
Replace struct v4l2_format * with void * to make queue_setup() for common use. And then, modify all device drivers related with this change. Signed-off-by: Junghak Sung <[email protected]> Signed-off-by: Geunyoung Kim <[email protected]> Acked-by: Seung-Woo Kim <[email protected]> Acked-by: Inki Dae <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> [[email protected]: fix missing const in fimc-lite.c] Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
4d0b0ed636
commit
33119e80c3
79 changed files with 119 additions and 85 deletions
|
|
@ -37,6 +37,7 @@
|
|||
#include <media/v4l2-dv-timings.h>
|
||||
#include <media/v4l2-ctrls.h>
|
||||
#include <media/v4l2-event.h>
|
||||
#include <media/videobuf2-v4l2.h>
|
||||
#include <media/videobuf2-dma-contig.h>
|
||||
|
||||
MODULE_DESCRIPTION("V4L2 PCI Skeleton Driver");
|
||||
|
|
@ -162,10 +163,11 @@ static irqreturn_t skeleton_irq(int irq, void *dev_id)
|
|||
* minimum number: many DMA engines need a minimum of 2 buffers in the
|
||||
* queue and you need to have another available for userspace processing.
|
||||
*/
|
||||
static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *fmt,
|
||||
static int queue_setup(struct vb2_queue *vq, const void *parg,
|
||||
unsigned int *nbuffers, unsigned int *nplanes,
|
||||
unsigned int sizes[], void *alloc_ctxs[])
|
||||
{
|
||||
const struct v4l2_format *fmt = parg;
|
||||
struct skeleton *skel = vb2_get_drv_priv(vq);
|
||||
|
||||
skel->field = skel->format.field;
|
||||
|
|
|
|||
Loading…
Reference in a new issue