summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-11-16 02:07:58 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-13 19:11:26 -0300
commite2b6d7b38c8d2082bacb72a322db9e6a6216ae15 (patch)
treeb9aea28fe1b845806fd6b62cdc2c8d4e1d73f432 /drivers/media
parent076e834fee91db7e9df4fe2d3ecf3ed67eadbe88 (diff)
downloadop-kernel-dev-e2b6d7b38c8d2082bacb72a322db9e6a6216ae15.zip
op-kernel-dev-e2b6d7b38c8d2082bacb72a322db9e6a6216ae15.tar.gz
[media] v4l: vsp1: Fix LUT format setting
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/vsp1/vsp1_lut.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_lut.c b/drivers/media/platform/vsp1/vsp1_lut.c
index c779648..33e3b5c 100644
--- a/drivers/media/platform/vsp1/vsp1_lut.c
+++ b/drivers/media/platform/vsp1/vsp1_lut.c
@@ -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,
OpenPOWER on IntegriCloud