media: atmel: atmel-isc: add raw Bayer 8bit 10bit output formats
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 13 Dec 2021 13:49:38 +0000 (14:49 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:44 +0000 (21:18 +0100)
The ISC can dump the 8 bit and 10 bit raw bayer formats directly to
the memory.
Thus, add them to the supported output format list.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/atmel/atmel-sama5d2-isc.c
drivers/media/platform/atmel/atmel-sama7g5-isc.c

index 1b2063cce0f728846578cb083c8e367ff7b16b09..c5b9563e36cb110434ce9e0aa0ae9a5bf9c2a0f2 100644 (file)
@@ -88,6 +88,30 @@ static const struct isc_format sama5d2_controller_formats[] = {
        {
                .fourcc         = V4L2_PIX_FMT_Y10,
        },
+       {
+               .fourcc         = V4L2_PIX_FMT_SBGGR8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGBRG8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGRBG8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SRGGB8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SBGGR10,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGBRG10,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGRBG10,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SRGGB10,
+       },
 };
 
 /* This is a list of formats that the ISC can receive as *input* */
index 020cd3ed1a9d7153f7b0a5415cbeba2bbd56947d..07a80b08bc545bcf4b832de0533c5e9061b249f9 100644 (file)
@@ -100,6 +100,30 @@ static const struct isc_format sama7g5_controller_formats[] = {
        {
                .fourcc         = V4L2_PIX_FMT_Y16,
        },
+       {
+               .fourcc         = V4L2_PIX_FMT_SBGGR8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGBRG8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGRBG8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SRGGB8,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SBGGR10,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGBRG10,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SGRBG10,
+       },
+       {
+               .fourcc         = V4L2_PIX_FMT_SRGGB10,
+       },
 };
 
 /* This is a list of formats that the ISC can receive as *input* */