From f9108fb71a56ccbc63f389b68a16091dab6bcbc6 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Wed, 15 Jul 2015 14:04:55 +0900 Subject: [PATCH] [COMMON] media: smfc: fix incorrect image format check for HWFC HWFC requires the source image is YUV422 1 plane or YUV420 2 plane. Change-Id: I5dfeb95cd66a2e9ce5d7cb353a2b249fc469a825 Signed-off-by: Cho KyongHo --- drivers/media/platform/exynos/smfc/smfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 48faf1cb5ab2..84ac57901908 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -1136,10 +1136,10 @@ static bool smfc_check_hwfc_configuration(struct smfc_ctx *ctx, bool hwfc_en) if (fmt->chroma_hfactor == 2) { /* YUV422 1-plane */ - if ((fmt->chroma_vfactor == 1) && (fmt->num_planes != 1)) + if ((fmt->chroma_vfactor == 1) && (fmt->num_planes == 1)) return true; /* YUV420 2-plane */ - if ((fmt->chroma_vfactor == 2) && (fmt->num_planes != 2)) + if ((fmt->chroma_vfactor == 2) && (fmt->num_planes == 2)) return true; } -- 2.20.1