]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
[media] videodev2.h: fix copy-and-paste error in V4L2_MAP_XFER_FUNC_DEFAULT
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 15 Jun 2015 13:52:40 +0000 (10:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 18 Jun 2015 17:34:46 +0000 (14:34 -0300)
The colorspace argument was compared against a V4L2_XFER_FUNC define instead
of against a V4L2_COLORSPACE define, returning the wrong answer.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/uapi/linux/videodev2.h

index 3d5fc72d53a75e9598d94ccd03b4880def0a25df..3228fbebcd6354fca3fad1dc1d7d419a16c64031 100644 (file)
@@ -270,7 +270,7 @@ enum v4l2_xfer_func {
  * This depends on the colorspace.
  */
 #define V4L2_MAP_XFER_FUNC_DEFAULT(colsp) \
-       ((colsp) == V4L2_XFER_FUNC_ADOBERGB ? V4L2_XFER_FUNC_ADOBERGB : \
+       ((colsp) == V4L2_COLORSPACE_ADOBERGB ? V4L2_XFER_FUNC_ADOBERGB : \
         ((colsp) == V4L2_COLORSPACE_SMPTE240M ? V4L2_XFER_FUNC_SMPTE240M : \
          ((colsp) == V4L2_COLORSPACE_RAW ? V4L2_XFER_FUNC_NONE : \
           ((colsp) == V4L2_COLORSPACE_SRGB || (colsp) == V4L2_COLORSPACE_JPEG ? \