summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2011-12-08 06:56:22 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-11 12:08:51 -0200
commit393a23fc9377ac3deaa97c5cc00b5c78746c8570 (patch)
treed86ee2606281fc1209bc45323935d14f6dfbc910 /drivers/media
parenta32390d808b5b7a6b1c7f9236673c917b4733f13 (diff)
downloadkernel-common-393a23fc9377ac3deaa97c5cc00b5c78746c8570.tar.gz
kernel-common-393a23fc9377ac3deaa97c5cc00b5c78746c8570.tar.bz2
kernel-common-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')
-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. */