Message ID | 1485979523-32404-2-git-send-email-javier@osg.samsung.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
On 02/01/2017 09:05 PM, Javier Martinez Canillas wrote: > From: Thibault Saunier <thibault.saunier@osg.samsung.com> > > 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> -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index 40aff08dd51d..a846659ae5c1 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c @@ -861,9 +861,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);