media: xilinx: video: Add 1X12 greyscale format
authorVolodymyr Kharuk <vkh@melexis.com>
Thu, 14 Jul 2022 08:34:44 +0000 (10:34 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 14:17:20 +0000 (16:17 +0200)
Extend the xilinx video driver with Y12_1X12 greyscale format

Signed-off-by: Volodymyr Kharuk <vkh@melexis.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/xilinx/xilinx-vip.c

index a007312..5b214bf 100644 (file)
@@ -40,6 +40,8 @@ static const struct xvip_video_format xvip_video_formats[] = {
          1, V4L2_PIX_FMT_SGBRG8 },
        { XVIP_VF_MONO_SENSOR, 8, "bggr", MEDIA_BUS_FMT_SBGGR8_1X8,
          1, V4L2_PIX_FMT_SBGGR8 },
+       { XVIP_VF_MONO_SENSOR, 12, "mono", MEDIA_BUS_FMT_Y12_1X12,
+         2, V4L2_PIX_FMT_Y12 },
 };
 
 /**