From dcf3254fafd08eed1d0312a2ce0f39f53c47be3f Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sun, 19 Dec 2010 12:57:59 +0100 Subject: [PATCH] Fix a typo, s/UYUV/UYVY/g. It was working just because it was consistently wrong. :) Thanks to Drew Fisher (zarvox) for spotting this. Signed-off-by: Antonio Ospite --- kinect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kinect.c b/kinect.c index 1d7a74f..c91bf33 100644 --- a/kinect.c +++ b/kinect.c @@ -68,7 +68,7 @@ static const struct ctrl sd_ctrls[] = { #define MODE_1280x1024 0x0002 #define FORMAT_BAYER 0x0010 -#define FORMAT_UYUV 0x0020 +#define FORMAT_UYVY 0x0020 #define FPS_HIGH 0x0100 @@ -82,7 +82,7 @@ static const struct v4l2_pix_format color_camera_mode[] = { .bytesperline = 640 * 2, .sizeimage = 640 * 480 * 2, .colorspace = V4L2_COLORSPACE_SRGB, - .priv = MODE_640x480 | FORMAT_UYUV}, + .priv = MODE_640x480 | FORMAT_UYVY}, {1280, 1024, V4L2_PIX_FMT_SGRBG8, V4L2_FIELD_NONE, .bytesperline = 1280, .sizeimage = 1280 * 1024, @@ -242,7 +242,7 @@ static int sd_start(struct gspca_dev *gspca_dev) fps_reg = 0x0e; /* format */ - if (mode & FORMAT_UYUV) + if (mode & FORMAT_UYVY) fmt_val = 0x05; else fmt_val = 0x00; -- 2.1.4