diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-05-11 08:56:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 11:18:24 -0400 |
commit | 7225a1dcc38f28fcc6178258b2072d12742f68d9 (patch) | |
tree | fed93626774c68b7ac136f04e2a99fdfea37d9ea /drivers | |
parent | 0e59fd0592430cee4595c600427899a3404861e7 (diff) |
[media] uvcvideo: Add M420 format support
The M420 format is used by the Microsoft LifeCam Studio HD.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[laurent.pinchart@ideasonboard.com: split into v4l/uvcvideo patches]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/uvc/uvc_driver.c | 5 | ||||
-rw-r--r-- | drivers/media/video/uvc/uvcvideo.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c index 496a9de6abd6..823f4b389745 100644 --- a/drivers/media/video/uvc/uvc_driver.c +++ b/drivers/media/video/uvc/uvc_driver.c | |||
@@ -84,6 +84,11 @@ static struct uvc_format_desc uvc_fmts[] = { | |||
84 | .fcc = V4L2_PIX_FMT_YUV420, | 84 | .fcc = V4L2_PIX_FMT_YUV420, |
85 | }, | 85 | }, |
86 | { | 86 | { |
87 | .name = "YUV 4:2:0 (M420)", | ||
88 | .guid = UVC_GUID_FORMAT_M420, | ||
89 | .fcc = V4L2_PIX_FMT_M420, | ||
90 | }, | ||
91 | { | ||
87 | .name = "YUV 4:2:2 (UYVY)", | 92 | .name = "YUV 4:2:2 (UYVY)", |
88 | .guid = UVC_GUID_FORMAT_UYVY, | 93 | .guid = UVC_GUID_FORMAT_UYVY, |
89 | .fcc = V4L2_PIX_FMT_UYVY, | 94 | .fcc = V4L2_PIX_FMT_UYVY, |
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 0275613c5f33..7cf224bae2e5 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h | |||
@@ -172,6 +172,9 @@ struct uvc_xu_control { | |||
172 | #define UVC_GUID_FORMAT_RGBP \ | 172 | #define UVC_GUID_FORMAT_RGBP \ |
173 | { 'R', 'G', 'B', 'P', 0x00, 0x00, 0x10, 0x00, \ | 173 | { 'R', 'G', 'B', 'P', 0x00, 0x00, 0x10, 0x00, \ |
174 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} | 174 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} |
175 | #define UVC_GUID_FORMAT_M420 \ | ||
176 | { 'M', '4', '2', '0', 0x00, 0x00, 0x10, 0x00, \ | ||
177 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} | ||
175 | 178 | ||
176 | /* ------------------------------------------------------------------------ | 179 | /* ------------------------------------------------------------------------ |
177 | * Driver specific constants. | 180 | * Driver specific constants. |