exynos-gsc: Do not swap cb/cr for semi planar formats
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 1 Feb 2017 20:05:21 +0000 (18:05 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:09 +0000 (10:26 +0200)
commitdb6767e2fdca12b8df8e3efdf567c434c47fb7d0
tree19662af876afccdc9bdfd65c06119fd4516ccdf5
parent61b203816b171130659e0168c263d195a6c41a44
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>
drivers/media/platform/exynos-gsc/gsc-core.c