diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2009-06-26 10:30:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:17:17 -0400 |
commit | 042e143e8b21dca7c84e32c2e647980cb9101224 (patch) | |
tree | fecee2683e2e2172db1aaeac483f896316e3f807 /drivers/media/video/uvc | |
parent | d33fbcbb21ba53358ba8a83765cfd1401e06d883 (diff) |
V4L/DVB (12184): uvcvideo: Use class-specific descriptor types from usb/ch9.h
uvcvideo.h redefines class-specific descriptor types already present in
usb/ch9.h. Remove the duplicated definitions and use the ones from usb/ch9.h.
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc')
-rw-r--r-- | drivers/media/video/uvc/uvc_driver.c | 4 | ||||
-rw-r--r-- | drivers/media/video/uvc/uvcvideo.h | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c index 04b47832fa0a..bebc187846fa 100644 --- a/drivers/media/video/uvc/uvc_driver.c +++ b/drivers/media/video/uvc/uvc_driver.c | |||
@@ -644,7 +644,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, | |||
644 | _buflen = buflen; | 644 | _buflen = buflen; |
645 | 645 | ||
646 | /* Count the format and frame descriptors. */ | 646 | /* Count the format and frame descriptors. */ |
647 | while (_buflen > 2 && _buffer[1] == CS_INTERFACE) { | 647 | while (_buflen > 2 && _buffer[1] == USB_DT_CS_INTERFACE) { |
648 | switch (_buffer[2]) { | 648 | switch (_buffer[2]) { |
649 | case VS_FORMAT_UNCOMPRESSED: | 649 | case VS_FORMAT_UNCOMPRESSED: |
650 | case VS_FORMAT_MJPEG: | 650 | case VS_FORMAT_MJPEG: |
@@ -709,7 +709,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, | |||
709 | streaming->nformats = nformats; | 709 | streaming->nformats = nformats; |
710 | 710 | ||
711 | /* Parse the format descriptors. */ | 711 | /* Parse the format descriptors. */ |
712 | while (buflen > 2 && buffer[1] == CS_INTERFACE) { | 712 | while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE) { |
713 | switch (buffer[2]) { | 713 | switch (buffer[2]) { |
714 | case VS_FORMAT_UNCOMPRESSED: | 714 | case VS_FORMAT_UNCOMPRESSED: |
715 | case VS_FORMAT_MJPEG: | 715 | case VS_FORMAT_MJPEG: |
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 3c78d3c1e4c0..8232cd5d7dfb 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h | |||
@@ -79,13 +79,6 @@ struct uvc_xu_control { | |||
79 | 79 | ||
80 | #define PC_PROTOCOL_UNDEFINED 0x00 | 80 | #define PC_PROTOCOL_UNDEFINED 0x00 |
81 | 81 | ||
82 | #define CS_UNDEFINED 0x20 | ||
83 | #define CS_DEVICE 0x21 | ||
84 | #define CS_CONFIGURATION 0x22 | ||
85 | #define CS_STRING 0x23 | ||
86 | #define CS_INTERFACE 0x24 | ||
87 | #define CS_ENDPOINT 0x25 | ||
88 | |||
89 | /* VideoControl class specific interface descriptor */ | 82 | /* VideoControl class specific interface descriptor */ |
90 | #define VC_DESCRIPTOR_UNDEFINED 0x00 | 83 | #define VC_DESCRIPTOR_UNDEFINED 0x00 |
91 | #define VC_HEADER 0x01 | 84 | #define VC_HEADER 0x01 |