According with USB Device Class Definition for Video Device the Processing Unit Descriptor bLength should be 12 (10 + bmControlSize), but it has 11. Invalid length caused that Processing Unit Descriptor Test Video form CV tool failed. To fix this issue patch adds bmVideoStandards into uvc_processing_unit_descriptor structure. The bmVideoStandards field was added in UVC 1.1 and it wasn't part of UVC 1.0a.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -302,9 +302,10 @@ struct uvc_processing_unit_descriptor { · 301 unmodified lines | |||
| 302 | __u8 bControlSize; | 302 | __u8 bControlSize; |
| 303 | __u8 bmControls[2]; | 303 | __u8 bmControls[2]; |
| 304 | __u8 iProcessing; | 304 | __u8 iProcessing; |
| 305 | __u8 bmVideoStandards; | ||
| 305 | } __attribute__((__packed__)); | 306 | } __attribute__((__packed__)); |
| 306 | 307 | ||
| 307 | #define UVC_DT_PROCESSING_UNIT_SIZE(n) (9+(n)) | 308 | #define UVC_DT_PROCESSING_UNIT_SIZE(n) (10+(n)) |
| 308 | 309 | ||
| 309 | /* 3.7.2.6. Extension Unit Descriptor */ | 310 | /* 3.7.2.6. Extension Unit Descriptor */ |
| 310 | struct uvc_extension_unit_descriptor { | 311 | struct uvc_extension_unit_descriptor { |