]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: ipu3-cio2: Add support for V4L2_PIX_FMT_IPU3_Y10
authorDaniel Scally <djrscally@gmail.com>
Thu, 5 May 2022 23:03:49 +0000 (01:03 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:38:32 +0000 (09:38 +0200)
We have platforms where a camera sensor transmits Y10 data to
the CIO2 device - add support for that (packed) format to the
ipu3-cio2 driver.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2-main.c

index 0975a069bd3844bb0d7e89e8308971fdd20135bb..dbdbdb648a0d32620303fb5eeea0b89958a232c2 100644 (file)
@@ -65,6 +65,11 @@ static const struct ipu3_cio2_fmt formats[] = {
                .fourcc         = V4L2_PIX_FMT_IPU3_SRGGB10,
                .mipicode       = 0x2b,
                .bpp            = 10,
+       }, {
+               .mbus_code      = MEDIA_BUS_FMT_Y10_1X10,
+               .fourcc         = V4L2_PIX_FMT_IPU3_Y10,
+               .mipicode       = 0x2b,
+               .bpp            = 10,
        },
 };