summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-fimc/fimc-capture.c
diff options
context:
space:
mode:
authorSylwester Nawrocki2011-12-08 10:56:22 +0100
committerMauro Carvalho Chehab2011-12-11 15:08:51 +0100
commit393a23fc9377ac3deaa97c5cc00b5c78746c8570 (patch)
treed86ee2606281fc1209bc45323935d14f6dfbc910 /drivers/media/video/s5p-fimc/fimc-capture.c
parent[media] m5mols: Fix logic in sanity check (diff)
downloadkernel-qcow2-linux-393a23fc9377ac3deaa97c5cc00b5c78746c8570.tar.gz
kernel-qcow2-linux-393a23fc9377ac3deaa97c5cc00b5c78746c8570.tar.xz
kernel-qcow2-linux-393a23fc9377ac3deaa97c5cc00b5c78746c8570.zip
[media] s5p-fimc: Fix camera input configuration in subdev operations
When using only subdev user-space operations the camera interface input was not configured properly. Fix this by updating the corresponding data structure in set_fmt operation. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s5p-fimc/fimc-capture.c')
-rw-r--r--drivers/media/video/s5p-fimc/fimc-capture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index 82d9ab6984eb..2cc3b9166724 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -1242,6 +1242,7 @@ static int fimc_subdev_set_fmt(struct v4l2_subdev *sd,
mutex_lock(&fimc->lock);
set_frame_bounds(ff, mf->width, mf->height);
+ fimc->vid_cap.mf = *mf;
ff->fmt = ffmt;
/* Reset the crop rectangle if required. */