Browse Source

[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>
Laurent Pinchart 9 năm trước cách đây
mục cha
commit
e2b6d7b38c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/media/platform/vsp1/vsp1_lut.c

+ 1 - 0
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,