From: Sylwester Nawrocki Date: Thu, 8 Dec 2011 09:56:22 +0000 (-0300) Subject: [media] s5p-fimc: Fix camera input configuration in subdev operations X-Git-Tag: next-20111212~62^2~2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=393a23fc9377ac3deaa97c5cc00b5c78746c8570;p=karo-tx-linux.git [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 Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- 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. */