From d82723672bd2d84b38b75724da4dda82aa0dd032 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 6 Mar 2011 08:32:04 -0300 Subject: [PATCH] --- yaml --- r: 250267 b: refs/heads/master c: 507910799160e85eac5e7729e0d2f1ba26f6a8cf h: refs/heads/master i: 250265: 6220e3d10ae8a9bcfdcb0d7e300a8d65bee22511 250263: 8f2efea183dfffd1e92e6e07d02fe2873895766f v: v3 --- [refs] | 2 +- trunk/drivers/media/video/uvc/uvc_driver.c | 5 +++++ trunk/drivers/media/video/uvc/uvcvideo.h | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6e6fc98d6fae..6b76cb4fa4fc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fb08a5cd57bfd6daf90a850c8081d6805a8b9900 +refs/heads/master: 507910799160e85eac5e7729e0d2f1ba26f6a8cf diff --git a/trunk/drivers/media/video/uvc/uvc_driver.c b/trunk/drivers/media/video/uvc/uvc_driver.c index 6459b8cba223..61e5137dbcb7 100644 --- a/trunk/drivers/media/video/uvc/uvc_driver.c +++ b/trunk/drivers/media/video/uvc/uvc_driver.c @@ -103,6 +103,11 @@ static struct uvc_format_desc uvc_fmts[] = { .guid = UVC_GUID_FORMAT_BY8, .fcc = V4L2_PIX_FMT_SBGGR8, }, + { + .name = "RGB565", + .guid = UVC_GUID_FORMAT_RGBP, + .fcc = V4L2_PIX_FMT_RGB565, + }, }; /* ------------------------------------------------------------------------ diff --git a/trunk/drivers/media/video/uvc/uvcvideo.h b/trunk/drivers/media/video/uvc/uvcvideo.h index 18d76679d952..cd58ea81320b 100644 --- a/trunk/drivers/media/video/uvc/uvcvideo.h +++ b/trunk/drivers/media/video/uvc/uvcvideo.h @@ -176,6 +176,9 @@ struct uvc_xu_control_query { #define UVC_GUID_FORMAT_BY8 \ { 'B', 'Y', '8', ' ', 0x00, 0x00, 0x10, 0x00, \ 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} +#define UVC_GUID_FORMAT_RGBP \ + { 'R', 'G', 'B', 'P', 0x00, 0x00, 0x10, 0x00, \ + 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} /* ------------------------------------------------------------------------ * Driver specific constants.