Skip to content

Commit

Permalink
v4l: xilinx: xcsirxss: Fix YUV420 format
Browse files Browse the repository at this point in the history
Adding new upstream MIPI CSI2 Data type for YUV 420 8bpc
and media bus format.
Fixes: d264207 ("v4l: xilinx: xcsi2rxss: Add support
for YUV 420 8bpc")

Signed-off-by: Kunal Rane <kunal.rane@amd.com>
Reported-by: Jakob Castro <jakob.castro@amd.com>
Reviewed-by: Vishal Sagar <vishal.sagar@amd.com>
  • Loading branch information
Kunal Rane authored and michalsimek committed Sep 15, 2023
1 parent b9b4258 commit 69238f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/platform/xilinx/xilinx-csi2rxss.c
Expand Up @@ -169,6 +169,7 @@ static const struct xcsi2rxss_event xcsi2rxss_events[] = {
* and media bus formats
*/
static const u32 xcsi2dt_mbus_lut[][2] = {
{ MIPI_CSI2_DT_YUV420_8B, MEDIA_BUS_FMT_VYYUYY8_1X24 },
{ MIPI_CSI2_DT_YUV422_8B, MEDIA_BUS_FMT_UYVY8_1X16 },
{ MIPI_CSI2_DT_YUV422_10B, MEDIA_BUS_FMT_UYVY10_1X20 },
{ MIPI_CSI2_DT_RGB444, 0 },
Expand Down Expand Up @@ -918,6 +919,7 @@ static int xcsi2rxss_parse_of(struct xcsi2rxss_state *xcsi2rxss)
}

switch (xcsi2rxss->datatype) {
case MIPI_CSI2_DT_YUV420_8B:
case MIPI_CSI2_DT_YUV422_8B:
case MIPI_CSI2_DT_RGB444:
case MIPI_CSI2_DT_RGB555:
Expand Down

0 comments on commit 69238f3

Please sign in to comment.