[media] uvcvideo: Add a mapping for H.264 payloads
authorStephan Lachowsky <stephan.lachowsky@maxim-ic.com>
Fri, 28 Jan 2011 19:38:58 +0000 (16:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 23 Sep 2011 23:07:59 +0000 (20:07 -0300)
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_driver.c
drivers/media/video/uvc/uvcvideo.h

index a3c24dd875fc8c72b32fadca0af445a8ba362170..656d4c9e3b9f85a07d96a57b5401b13e9526aa4d 100644 (file)
@@ -114,6 +114,11 @@ static struct uvc_format_desc uvc_fmts[] = {
                .guid           = UVC_GUID_FORMAT_RGBP,
                .fcc            = V4L2_PIX_FMT_RGB565,
        },
+       {
+               .name           = "H.264",
+               .guid           = UVC_GUID_FORMAT_H264,
+               .fcc            = V4L2_PIX_FMT_H264,
+       },
 };
 
 /* ------------------------------------------------------------------------
index e3aec87eaa53b083e8ac08f5d39899a658ea6134..4c1392ebcd4bd2634b245a23209f37c129e7be1f 100644 (file)
        { 'M',  '4',  '2',  '0', 0x00, 0x00, 0x10, 0x00, \
         0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
 
+#define UVC_GUID_FORMAT_H264 \
+       { 'H',  '2',  '6',  '4', 0x00, 0x00, 0x10, 0x00, \
+        0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
+
 /* ------------------------------------------------------------------------
  * Driver specific constants.
  */