]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: camss: add support for V4L2_PIX_FMT_GREY for sdm845 HW
authorJonathan Marek <jonathan@marek.ca>
Wed, 22 Dec 2021 00:37:47 +0000 (01:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:41 +0000 (21:18 +0100)
Add this common format to the various format lists relevant to sdm845.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/qcom/camss/camss-csid-170.c
drivers/media/platform/qcom/camss/camss-csiphy.c
drivers/media/platform/qcom/camss/camss-vfe.c
drivers/media/platform/qcom/camss/camss-video.c

index 22a7d7ad63403a1b8577342e922ae3c3b00409ac..9e54d251793fca3b1308290f261ed025d79a837c 100644 (file)
@@ -262,6 +262,13 @@ static const struct csid_format csid_formats[] = {
                10,
                1,
        },
+       {
+               MEDIA_BUS_FMT_Y8_1X8,
+               DATA_TYPE_RAW_8BIT,
+               DECODE_FORMAT_UNCOMPRESSED_8_BIT,
+               8,
+               1,
+       },
        {
                MEDIA_BUS_FMT_Y10_1X10,
                DATA_TYPE_RAW_10BIT,
index 24eec16197e76d61203a0e4d1db039c92a0c72ff..de1e81bb97c92f21155d2bfa384883c660ad5d2b 100644 (file)
@@ -94,6 +94,7 @@ static const struct csiphy_format csiphy_formats_sdm845[] = {
        { MEDIA_BUS_FMT_SGBRG14_1X14, 14 },
        { MEDIA_BUS_FMT_SGRBG14_1X14, 14 },
        { MEDIA_BUS_FMT_SRGGB14_1X14, 14 },
+       { MEDIA_BUS_FMT_Y8_1X8, 8 },
        { MEDIA_BUS_FMT_Y10_1X10, 10 },
 };
 
index 165b404761db5b2fd327f96fd6b8cb97d98f6667..3d2f554a4ef716ef8c75ef2179cfd96d5bc3517d 100644 (file)
@@ -118,6 +118,7 @@ static const struct vfe_format formats_rdi_845[] = {
        { MEDIA_BUS_FMT_SGBRG14_1X14, 14 },
        { MEDIA_BUS_FMT_SGRBG14_1X14, 14 },
        { MEDIA_BUS_FMT_SRGGB14_1X14, 14 },
+       { MEDIA_BUS_FMT_Y8_1X8, 8 },
        { MEDIA_BUS_FMT_Y10_1X10, 10 },
        { MEDIA_BUS_FMT_Y10_2X8_PADHI_LE, 16 },
 };
index f282275af626f2a58095e1cbd0d0cd77803ca083..54e77d30d452c5d83a11fe8b6247cb0f0315dc1f 100644 (file)
@@ -176,6 +176,8 @@ static const struct camss_format_info formats_rdi_845[] = {
          { { 1, 1 } }, { { 1, 1 } }, { 14 } },
        { MEDIA_BUS_FMT_SRGGB14_1X14, V4L2_PIX_FMT_SRGGB14P, 1,
          { { 1, 1 } }, { { 1, 1 } }, { 14 } },
+       { MEDIA_BUS_FMT_Y8_1X8, V4L2_PIX_FMT_GREY, 1,
+         { { 1, 1 } }, { { 1, 1 } }, { 8 } },
        { MEDIA_BUS_FMT_Y10_1X10, V4L2_PIX_FMT_Y10P, 1,
          { { 1, 1 } }, { { 1, 1 } }, { 10 } },
        { MEDIA_BUS_FMT_Y10_2X8_PADHI_LE, V4L2_PIX_FMT_Y10, 1,