]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] s5p-fimc: Fix camera input configuration in subdev operations
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 8 Dec 2011 09:56:22 +0000 (06:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 14:08:51 +0000 (12:08 -0200)
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>
drivers/media/video/s5p-fimc/fimc-capture.c

index 82d9ab6984ebdde6164f3a1ad39537dd309097c8..2cc3b9166724f2eaf47ea1c05f5a12e5e7208ea7 100644 (file)
@@ -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. */