From 66951602d3b23b98f9615bc8545ba51ff3c70a38 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Tue, 19 May 2015 00:01:02 +0900 Subject: [PATCH] [COMMON] media: smfc: initialize all formats with chroma subsampling factor 1 Otherwise, size check will fail due to zero factor. Change-Id: I56baa4a36b1fc9f5b7e22f8237aa506358a68bb2 Signed-off-by: Cho KyongHo --- drivers/media/platform/exynos/smfc/smfc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 3fd3e8360347..c9fe83960601 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -173,6 +173,8 @@ const struct smfc_image_format smfc_image_formats[] = { .bpp_pix = {16}, .num_planes = 1, .num_buffers = 1, + .chroma_hfactor = 1, + .chroma_vfactor = 1, }, { .description = "RGB565 BE 16BPP", .v4l2_pixfmt = V4L2_PIX_FMT_RGB565X, @@ -181,6 +183,8 @@ const struct smfc_image_format smfc_image_formats[] = { .bpp_pix = {16}, .num_planes = 1, .num_buffers = 1, + .chroma_hfactor = 1, + .chroma_vfactor = 1, }, { .description = "RGB888 LE 24BPP", .v4l2_pixfmt = V4L2_PIX_FMT_RGB24, @@ -189,6 +193,8 @@ const struct smfc_image_format smfc_image_formats[] = { .bpp_pix = {24}, .num_planes = 1, .num_buffers = 1, + .chroma_hfactor = 1, + .chroma_vfactor = 1, }, { .description = "RGB888 BE 24BPP", .v4l2_pixfmt = V4L2_PIX_FMT_BGR24, @@ -197,6 +203,8 @@ const struct smfc_image_format smfc_image_formats[] = { .bpp_pix = {24}, .num_planes = 1, .num_buffers = 1, + .chroma_hfactor = 1, + .chroma_vfactor = 1, }, { .description = "ABGR8888 LE 32BPP", .v4l2_pixfmt = V4L2_PIX_FMT_RGB32, @@ -204,6 +212,8 @@ const struct smfc_image_format smfc_image_formats[] = { .bpp_pix = {32}, .num_planes = 1, .num_buffers = 1, + .chroma_hfactor = 1, + .chroma_vfactor = 1, }, { .description = "ARGB8888 BE 32BPP", .v4l2_pixfmt = V4L2_PIX_FMT_BGR32, @@ -211,6 +221,8 @@ const struct smfc_image_format smfc_image_formats[] = { .bpp_pix = {32}, .num_planes = 1, .num_buffers = 1, + .chroma_hfactor = 1, + .chroma_vfactor = 1, }, /* multi-planar formats must be at the last becuse of VIDOC_ENUM_FMT */ { -- 2.20.1