From patchwork Tue Dec 1 23:48:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Ritz X-Patchwork-Id: 64072 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB1NnAO6014320 for ; Tue, 1 Dec 2009 23:49:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754749AbZLAXsl (ORCPT ); Tue, 1 Dec 2009 18:48:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754747AbZLAXsk (ORCPT ); Tue, 1 Dec 2009 18:48:40 -0500 Received: from mail.gmx.net ([213.165.64.20]:38353 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754717AbZLAXsk (ORCPT ); Tue, 1 Dec 2009 18:48:40 -0500 Received: (qmail invoked by alias); 01 Dec 2009 23:48:45 -0000 Received: from 80-218-69-34.dclient.hispeed.ch (EHLO [192.168.100.200]) [80.218.69.34] by mail.gmx.net (mp029) with SMTP; 02 Dec 2009 00:48:45 +0100 X-Authenticated: #2813124 X-Provags-ID: V01U2FsdGVkX1+Xv+4VoJyX07ntxlYCSmIjbhqjGwOuPpeMFi6UO2 ABhmFjMu6ufFW8 Subject: [PATCH] uvcvideo: add another YUYV format GUID From: Daniel Ritz To: Laurent Pinchart , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.ritz-ml@swissonline.ch Date: Wed, 02 Dec 2009 00:48:44 +0100 Message-ID: <1259711324.13720.20.camel@MacRitz2> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.49 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c index 8756be5..c5af0a2 100644 --- a/drivers/media/video/uvc/uvc_driver.c +++ b/drivers/media/video/uvc/uvc_driver.c @@ -58,6 +58,11 @@ static struct uvc_format_desc uvc_fmts[] = { .fcc = V4L2_PIX_FMT_YUYV, }, { + .name = "YUV 4:2:2 (YUYV)", + .guid = UVC_GUID_FORMAT_YUY2_2, + .fcc = V4L2_PIX_FMT_YUYV, + }, + { .name = "YUV 4:2:0 (NV12)", .guid = UVC_GUID_FORMAT_NV12, .fcc = V4L2_PIX_FMT_NV12, diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index e7958aa..f18eac2 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h @@ -112,6 +112,9 @@ struct uvc_xu_control { #define UVC_GUID_FORMAT_YUY2 \ { 'Y', 'U', 'Y', '2', 0x00, 0x00, 0x10, 0x00, \ 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} +#define UVC_GUID_FORMAT_YUY2_2 \ + { 'Y', 'U', 'Y', '2', 0x00, 0x00, 0x10, 0x00, \ + 0x80, 0x00, 0x00, 0x00, 0x00, 0x38, 0x9b, 0x71} #define UVC_GUID_FORMAT_NV12 \ { 'N', 'V', '1', '2', 0x00, 0x00, 0x10, 0x00, \ 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}