diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-10 11:47:34 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-07-08 19:03:07 +0200 |
commit | ba9b219f914b9507cf6a69cfe5b12a762271f55d (patch) | |
tree | 242e33f33c85244fb0383993cc289764aead9f47 /drivers | |
parent | media: staging: media: imx: imx7-media-csi: Fix list of supported formats (diff) | |
download | linux-ba9b219f914b9507cf6a69cfe5b12a762271f55d.tar.xz linux-ba9b219f914b9507cf6a69cfe5b12a762271f55d.zip |
media: staging: media: imx: imx7-media-csi: Add V4L2_PIX_FMT_Y14 support
The device supports 14-bit greyscale formats the same way it supports
14-bit Bayer formats.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/media/imx/imx7-media-csi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index 449a52baffcc..ff80187ec1a2 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -907,6 +907,10 @@ static const struct imx7_csi_pixfmt pixel_formats[] = { .fourcc = V4L2_PIX_FMT_Y12, .codes = IMX_BUS_FMTS(MEDIA_BUS_FMT_Y12_1X12), .bpp = 16, + }, { + .fourcc = V4L2_PIX_FMT_Y14, + .codes = IMX_BUS_FMTS(MEDIA_BUS_FMT_Y14_1X14), + .bpp = 16, }, }; @@ -2021,6 +2025,7 @@ static int imx7_csi_pad_link_validate(struct v4l2_subdev *sd, case V4L2_PIX_FMT_GREY: case V4L2_PIX_FMT_Y10: case V4L2_PIX_FMT_Y12: + case V4L2_PIX_FMT_Y14: case V4L2_PIX_FMT_SBGGR8: case V4L2_PIX_FMT_SGBRG8: case V4L2_PIX_FMT_SGRBG8: |