summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-02-01 18:05:21 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-08 10:11:21 +0200
commitb05c24d64d4c1a2534a1db469caa17b7ba2f50e1 (patch)
tree635e87d7999feecc5efc1f618bdf8ab954741d15
parentc8cab6f202a1cecb5217706b6df631c87daf39e1 (diff)
downloadlinux-stable-b05c24d64d4c1a2534a1db469caa17b7ba2f50e1.tar.gz
linux-stable-b05c24d64d4c1a2534a1db469caa17b7ba2f50e1.tar.bz2
linux-stable-b05c24d64d4c1a2534a1db469caa17b7ba2f50e1.zip
exynos-gsc: Do not swap cb/cr for semi planar formats
[ Upstream commit d7f3e33df4fbdc9855fb151f4a328ec46447e3ba ] In the case of semi planar formats cb and cr are in the same plane in memory, meaning that will be set to 'cb' whatever the format is, and whatever the (packed) order of those components are. Suggested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Thibault Saunier <thibault.saunier@osg.samsung.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index b4c9f1d08968..fc1716f08777 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -846,9 +846,7 @@ int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
if ((frame->fmt->pixelformat == V4L2_PIX_FMT_VYUY) ||
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVYU) ||
- (frame->fmt->pixelformat == V4L2_PIX_FMT_NV61) ||
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420) ||
- (frame->fmt->pixelformat == V4L2_PIX_FMT_NV21) ||
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420M))
swap(addr->cb, addr->cr);