[media] sh-veu: don't use COLORSPACE_JPEG
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 15 Jun 2015 11:33:29 +0000 (08:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 22 Jul 2015 16:24:22 +0000 (13:24 -0300)
COLORSPACE_JPEG should only be used for JPEGs. Use SMPTE170M instead,
which is how YCbCr images are usually encoded.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sh_veu.c

index 2554f3719b9e365584fb9b105c1ffd7d65bcd1b9..7bb249cd19b8cdcbd0c9ee1879d1f08cdba38f7a 100644 (file)
@@ -211,7 +211,7 @@ static enum v4l2_colorspace sh_veu_4cc2cspace(u32 fourcc)
        case V4L2_PIX_FMT_NV12:
        case V4L2_PIX_FMT_NV16:
        case V4L2_PIX_FMT_NV24:
-               return V4L2_COLORSPACE_JPEG;
+               return V4L2_COLORSPACE_SMPTE170M;
        case V4L2_PIX_FMT_RGB332:
        case V4L2_PIX_FMT_RGB444:
        case V4L2_PIX_FMT_RGB565: