From: Jacek Anaszewski Date: Mon, 25 Nov 2013 09:58:09 +0000 (-0300) Subject: [media] s5p-jpeg: Fix output YUV 4:2:0 fourcc for decoder X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c97ba28b0f17d88ef072e3536aa160df6d48431d;p=linux-beck.git [media] s5p-jpeg: Fix output YUV 4:2:0 fourcc for decoder Output samples during decoding phase for the YUV 4:2:0 format are arranged in the manner compatible with 2-planar NV12, not 3-planar YUV420 fourcc. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 6dae39f828b2..eb06af1a40e9 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -58,7 +58,7 @@ static struct s5p_jpeg_fmt formats_enc[] = { static struct s5p_jpeg_fmt formats_dec[] = { { .name = "YUV 4:2:0 planar, YCbCr", - .fourcc = V4L2_PIX_FMT_YUV420, + .fourcc = V4L2_PIX_FMT_NV12, .depth = 12, .colplanes = 3, .h_align = 4,