aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-tv/mixer_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/s5p-tv/mixer_video.c')
-rw-r--r--drivers/media/video/s5p-tv/mixer_video.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c
index f7ca5cc143c6..33fde2a763ec 100644
--- a/drivers/media/video/s5p-tv/mixer_video.c
+++ b/drivers/media/video/s5p-tv/mixer_video.c
@@ -140,7 +140,7 @@ fail:
140 return ret; 140 return ret;
141} 141}
142 142
143void __devexit mxr_release_video(struct mxr_device *mdev) 143void mxr_release_video(struct mxr_device *mdev)
144{ 144{
145 int i; 145 int i;
146 146
@@ -853,8 +853,8 @@ static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt,
853 *nplanes = fmt->num_subframes; 853 *nplanes = fmt->num_subframes;
854 for (i = 0; i < fmt->num_subframes; ++i) { 854 for (i = 0; i < fmt->num_subframes; ++i) {
855 alloc_ctxs[i] = layer->mdev->alloc_ctx; 855 alloc_ctxs[i] = layer->mdev->alloc_ctx;
856 sizes[i] = PAGE_ALIGN(planes[i].sizeimage); 856 sizes[i] = planes[i].sizeimage;
857 mxr_dbg(mdev, "size[%d] = %08lx\n", i, sizes[i]); 857 mxr_dbg(mdev, "size[%d] = %08x\n", i, sizes[i]);
858 } 858 }
859 859
860 if (*nbuffers == 0) 860 if (*nbuffers == 0)
@@ -1069,6 +1069,10 @@ struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,
1069 set_bit(V4L2_FL_USE_FH_PRIO, &layer->vfd.flags); 1069 set_bit(V4L2_FL_USE_FH_PRIO, &layer->vfd.flags);
1070 1070
1071 video_set_drvdata(&layer->vfd, layer); 1071 video_set_drvdata(&layer->vfd, layer);
1072 /* Locking in file operations other than ioctl should be done
1073 by the driver, not the V4L2 core.
1074 This driver needs auditing so that this flag can be removed. */
1075 set_bit(V4L2_FL_LOCK_ALL_FOPS, &layer->vfd.flags);
1072 layer->vfd.lock = &layer->mutex; 1076 layer->vfd.lock = &layer->mutex;
1073 layer->vfd.v4l2_dev = &mdev->v4l2_dev; 1077 layer->vfd.v4l2_dev = &mdev->v4l2_dev;
1074 1078