[media] v4l: vsp1: Fix LUT format setting
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 16 Nov 2015 04:07:58 +0000 (02:07 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 22:11:26 +0000 (19:11 -0300)
The LUT set format handler overrides the requested format by mistake.
Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_lut.c

index c779648882ab584fa262969211726f30da73a460..33e3b5cc9c9b5853e8c87e2ebfb4bcd24bee1bb4 100644 (file)
@@ -111,6 +111,7 @@ static int lut_set_format(struct v4l2_subdev *subdev,
                return 0;
        }
 
+       format->code = fmt->format.code;
        format->width = clamp_t(unsigned int, fmt->format.width,
                                LUT_MIN_SIZE, LUT_MAX_SIZE);
        format->height = clamp_t(unsigned int, fmt->format.height,
This page took 0.026842 seconds and 5 git commands to generate.