From: Cho KyongHo Date: Fri, 15 May 2015 10:57:08 +0000 (+0900) Subject: [COMMON] media: smfc: fix doubling number of planes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef88f1a07c655a3d396975c89a19f5cae2e48617;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: smfc: fix doubling number of planes Doubling the number of planes in s_fmt() handler considers that the number of buffers should be doubled the number of planes when back- to-back compression is enabled. But it is implicitly configued during qbuf(). Userspace qbufs double number of buffers than the number of planes. Change-Id: I70312ef199214cc3794c32ff2e8a719f5f11ffaf Signed-off-by: Cho KyongHo --- diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index b49909a650fb..c601f5b94ebe 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -938,8 +938,6 @@ static bool smfc_v4l2_init_fmt_mplane(const struct smfc_ctx *ctx, pix_mp->plane_fmt[i + j].bytesperline * SMFC_FMT_SEC_SIZE(pix_mp->height); } - - pix_mp->num_planes *= 2; } return true;