aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-30 08:18:52 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:06:19 -0400
commite3cfd447d01cf723ccda0ad6bfa2e85b73d3d747 (patch)
tree8fd50212aabd40320a41b6a55055fc808b544cd8
parent4bf8b679029127fd84e9bfeb8710723a426e89ad (diff)
V4L/DVB: videobuf: add ext_lock argument to the queue init functions (part 2)
Missed a few init functions on non-Intel platforms the first time :-( Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/davinci/vpfe_capture.c2
-rw-r--r--drivers/media/video/davinci/vpif_capture.c3
-rw-r--r--drivers/media/video/davinci/vpif_display.c3
-rw-r--r--drivers/media/video/fsl-viu.c2
-rw-r--r--drivers/media/video/mx1_camera.c2
-rw-r--r--drivers/media/video/mx2_camera.c2
-rw-r--r--drivers/media/video/mx3_camera.c3
-rw-r--r--drivers/media/video/omap/omap_vout.c2
-rw-r--r--drivers/media/video/omap24xxcam.c2
-rw-r--r--drivers/media/video/pxa_camera.c2
-rw-r--r--drivers/media/video/s5p-fimc/fimc-core.c2
-rw-r--r--drivers/media/video/sh_mobile_ceu_camera.c2
-rw-r--r--drivers/media/video/sh_vou.c3
13 files changed, 17 insertions, 13 deletions
diff --git a/drivers/media/video/davinci/vpfe_capture.c b/drivers/media/video/davinci/vpfe_capture.c
index b39112517dfb..cd068de9fc20 100644
--- a/drivers/media/video/davinci/vpfe_capture.c
+++ b/drivers/media/video/davinci/vpfe_capture.c
@@ -1372,7 +1372,7 @@ static int vpfe_reqbufs(struct file *file, void *priv,
1372 req_buf->type, 1372 req_buf->type,
1373 vpfe_dev->fmt.fmt.pix.field, 1373 vpfe_dev->fmt.fmt.pix.field,
1374 sizeof(struct videobuf_buffer), 1374 sizeof(struct videobuf_buffer),
1375 fh); 1375 fh, NULL);
1376 1376
1377 fh->io_allowed = 1; 1377 fh->io_allowed = 1;
1378 vpfe_dev->io_usrs = 1; 1378 vpfe_dev->io_usrs = 1;
diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c
index 730bd4cf5772..109ab8d0ce09 100644
--- a/drivers/media/video/davinci/vpif_capture.c
+++ b/drivers/media/video/davinci/vpif_capture.c
@@ -927,7 +927,8 @@ static int vpif_reqbufs(struct file *file, void *priv,
927 &common->irqlock, 927 &common->irqlock,
928 reqbuf->type, 928 reqbuf->type,
929 common->fmt.fmt.pix.field, 929 common->fmt.fmt.pix.field,
930 sizeof(struct videobuf_buffer), fh); 930 sizeof(struct videobuf_buffer), fh,
931 NULL);
931 932
932 /* Set io allowed member of file handle to TRUE */ 933 /* Set io allowed member of file handle to TRUE */
933 fh->io_allowed[index] = 1; 934 fh->io_allowed[index] = 1;
diff --git a/drivers/media/video/davinci/vpif_display.c b/drivers/media/video/davinci/vpif_display.c
index 912c27b75099..8894af24bdb2 100644
--- a/drivers/media/video/davinci/vpif_display.c
+++ b/drivers/media/video/davinci/vpif_display.c
@@ -853,7 +853,8 @@ static int vpif_reqbufs(struct file *file, void *priv,
853 &video_qops, NULL, 853 &video_qops, NULL,
854 &common->irqlock, 854 &common->irqlock,
855 reqbuf->type, field, 855 reqbuf->type, field,
856 sizeof(struct videobuf_buffer), fh); 856 sizeof(struct videobuf_buffer), fh,
857 NULL);
857 858
858 /* Set io allowed member of file handle to TRUE */ 859 /* Set io allowed member of file handle to TRUE */
859 fh->io_allowed[index] = 1; 860 fh->io_allowed[index] = 1;
diff --git a/drivers/media/video/fsl-viu.c b/drivers/media/video/fsl-viu.c
index 211e83963a46..5c57babdac99 100644
--- a/drivers/media/video/fsl-viu.c
+++ b/drivers/media/video/fsl-viu.c
@@ -1288,7 +1288,7 @@ static int viu_open(struct file *file)
1288 videobuf_queue_dma_contig_init(&fh->vb_vidq, &viu_video_qops, 1288 videobuf_queue_dma_contig_init(&fh->vb_vidq, &viu_video_qops,
1289 dev->dev, &fh->vbq_lock, 1289 dev->dev, &fh->vbq_lock,
1290 fh->type, V4L2_FIELD_INTERLACED, 1290 fh->type, V4L2_FIELD_INTERLACED,
1291 sizeof(struct viu_buf), fh); 1291 sizeof(struct viu_buf), fh, NULL);
1292 return 0; 1292 return 0;
1293} 1293}
1294 1294
diff --git a/drivers/media/video/mx1_camera.c b/drivers/media/video/mx1_camera.c
index adc72c4a9f08..5e486a88ad7c 100644
--- a/drivers/media/video/mx1_camera.c
+++ b/drivers/media/video/mx1_camera.c
@@ -385,7 +385,7 @@ static void mx1_camera_init_videobuf(struct videobuf_queue *q,
385 &pcdev->lock, 385 &pcdev->lock,
386 V4L2_BUF_TYPE_VIDEO_CAPTURE, 386 V4L2_BUF_TYPE_VIDEO_CAPTURE,
387 V4L2_FIELD_NONE, 387 V4L2_FIELD_NONE,
388 sizeof(struct mx1_buffer), icd); 388 sizeof(struct mx1_buffer), icd, NULL);
389} 389}
390 390
391static int mclk_get_divisor(struct mx1_camera_dev *pcdev) 391static int mclk_get_divisor(struct mx1_camera_dev *pcdev)
diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c
index e330a76b004a..4a27862da30d 100644
--- a/drivers/media/video/mx2_camera.c
+++ b/drivers/media/video/mx2_camera.c
@@ -682,7 +682,7 @@ static void mx2_camera_init_videobuf(struct videobuf_queue *q,
682 682
683 videobuf_queue_dma_contig_init(q, &mx2_videobuf_ops, pcdev->dev, 683 videobuf_queue_dma_contig_init(q, &mx2_videobuf_ops, pcdev->dev,
684 &pcdev->lock, V4L2_BUF_TYPE_VIDEO_CAPTURE, 684 &pcdev->lock, V4L2_BUF_TYPE_VIDEO_CAPTURE,
685 V4L2_FIELD_NONE, sizeof(struct mx2_buffer), icd); 685 V4L2_FIELD_NONE, sizeof(struct mx2_buffer), icd, NULL);
686} 686}
687 687
688#define MX2_BUS_FLAGS (SOCAM_DATAWIDTH_8 | \ 688#define MX2_BUS_FLAGS (SOCAM_DATAWIDTH_8 | \
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c
index d020388d29ca..29c5fc348133 100644
--- a/drivers/media/video/mx3_camera.c
+++ b/drivers/media/video/mx3_camera.c
@@ -441,7 +441,8 @@ static void mx3_camera_init_videobuf(struct videobuf_queue *q,
441 &mx3_cam->lock, 441 &mx3_cam->lock,
442 V4L2_BUF_TYPE_VIDEO_CAPTURE, 442 V4L2_BUF_TYPE_VIDEO_CAPTURE,
443 V4L2_FIELD_NONE, 443 V4L2_FIELD_NONE,
444 sizeof(struct mx3_camera_buffer), icd); 444 sizeof(struct mx3_camera_buffer), icd,
445 NULL);
445} 446}
446 447
447/* First part of ipu_csi_init_interface() */ 448/* First part of ipu_csi_init_interface() */
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
index 4ed51b1552e1..15f8793e325b 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -1341,7 +1341,7 @@ static int omap_vout_open(struct file *file)
1341 1341
1342 videobuf_queue_dma_contig_init(q, &video_vbq_ops, q->dev, 1342 videobuf_queue_dma_contig_init(q, &video_vbq_ops, q->dev,
1343 &vout->vbq_lock, vout->type, V4L2_FIELD_NONE, 1343 &vout->vbq_lock, vout->type, V4L2_FIELD_NONE,
1344 sizeof(struct videobuf_buffer), vout); 1344 sizeof(struct videobuf_buffer), vout, NULL);
1345 1345
1346 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "Exiting %s\n", __func__); 1346 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "Exiting %s\n", __func__);
1347 return 0; 1347 return 0;
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c
index 13c09f5fa875..378b094aff16 100644
--- a/drivers/media/video/omap24xxcam.c
+++ b/drivers/media/video/omap24xxcam.c
@@ -1491,7 +1491,7 @@ static int omap24xxcam_open(struct file *file)
1491 videobuf_queue_sg_init(&fh->vbq, &omap24xxcam_vbq_ops, NULL, 1491 videobuf_queue_sg_init(&fh->vbq, &omap24xxcam_vbq_ops, NULL,
1492 &fh->vbq_lock, V4L2_BUF_TYPE_VIDEO_CAPTURE, 1492 &fh->vbq_lock, V4L2_BUF_TYPE_VIDEO_CAPTURE,
1493 V4L2_FIELD_NONE, 1493 V4L2_FIELD_NONE,
1494 sizeof(struct videobuf_buffer), fh); 1494 sizeof(struct videobuf_buffer), fh, NULL);
1495 1495
1496 return 0; 1496 return 0;
1497 1497
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index 7ffa525019d4..c143ed0a5270 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -852,7 +852,7 @@ static void pxa_camera_init_videobuf(struct videobuf_queue *q,
852 */ 852 */
853 videobuf_queue_sg_init(q, &pxa_videobuf_ops, NULL, &pcdev->lock, 853 videobuf_queue_sg_init(q, &pxa_videobuf_ops, NULL, &pcdev->lock,
854 V4L2_BUF_TYPE_VIDEO_CAPTURE, V4L2_FIELD_NONE, 854 V4L2_BUF_TYPE_VIDEO_CAPTURE, V4L2_FIELD_NONE,
855 sizeof(struct pxa_buffer), icd); 855 sizeof(struct pxa_buffer), icd, NULL);
856} 856}
857 857
858static u32 mclk_get_divisor(struct platform_device *pdev, 858static u32 mclk_get_divisor(struct platform_device *pdev,
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index 6961c55baf9b..c56029ee6e31 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -1138,7 +1138,7 @@ static void queue_init(void *priv, struct videobuf_queue *vq,
1138 videobuf_queue_dma_contig_init(vq, &fimc_qops, 1138 videobuf_queue_dma_contig_init(vq, &fimc_qops,
1139 fimc->m2m.v4l2_dev.dev, 1139 fimc->m2m.v4l2_dev.dev,
1140 &fimc->irqlock, type, V4L2_FIELD_NONE, 1140 &fimc->irqlock, type, V4L2_FIELD_NONE,
1141 sizeof(struct fimc_vid_buffer), priv); 1141 sizeof(struct fimc_vid_buffer), priv, NULL);
1142} 1142}
1143 1143
1144static int fimc_m2m_open(struct file *file) 1144static int fimc_m2m_open(struct file *file)
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c
index cbc997d591bf..b11e74949e4c 100644
--- a/drivers/media/video/sh_mobile_ceu_camera.c
+++ b/drivers/media/video/sh_mobile_ceu_camera.c
@@ -1786,7 +1786,7 @@ static void sh_mobile_ceu_init_videobuf(struct videobuf_queue *q,
1786 V4L2_BUF_TYPE_VIDEO_CAPTURE, 1786 V4L2_BUF_TYPE_VIDEO_CAPTURE,
1787 pcdev->field, 1787 pcdev->field,
1788 sizeof(struct sh_mobile_ceu_buffer), 1788 sizeof(struct sh_mobile_ceu_buffer),
1789 icd); 1789 icd, NULL);
1790} 1790}
1791 1791
1792static int sh_mobile_ceu_get_parm(struct soc_camera_device *icd, 1792static int sh_mobile_ceu_get_parm(struct soc_camera_device *icd,
diff --git a/drivers/media/video/sh_vou.c b/drivers/media/video/sh_vou.c
index d3acd02a1632..195ac8651160 100644
--- a/drivers/media/video/sh_vou.c
+++ b/drivers/media/video/sh_vou.c
@@ -1189,7 +1189,8 @@ static int sh_vou_open(struct file *file)
1189 vou_dev->v4l2_dev.dev, &vou_dev->lock, 1189 vou_dev->v4l2_dev.dev, &vou_dev->lock,
1190 V4L2_BUF_TYPE_VIDEO_OUTPUT, 1190 V4L2_BUF_TYPE_VIDEO_OUTPUT,
1191 V4L2_FIELD_NONE, 1191 V4L2_FIELD_NONE,
1192 sizeof(struct videobuf_buffer), vdev); 1192 sizeof(struct videobuf_buffer), vdev,
1193 NULL);
1193 1194
1194 return 0; 1195 return 0;
1195} 1196}