diff options
Diffstat (limited to 'drivers/media/video/uvc/uvcvideo.h')
-rw-r--r-- | drivers/media/video/uvc/uvcvideo.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 2337585001ea..2bba059259e6 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h | |||
@@ -113,6 +113,9 @@ struct uvc_xu_control { | |||
113 | #define UVC_GUID_FORMAT_YUY2 \ | 113 | #define UVC_GUID_FORMAT_YUY2 \ |
114 | { 'Y', 'U', 'Y', '2', 0x00, 0x00, 0x10, 0x00, \ | 114 | { 'Y', 'U', 'Y', '2', 0x00, 0x00, 0x10, 0x00, \ |
115 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} | 115 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} |
116 | #define UVC_GUID_FORMAT_YUY2_ISIGHT \ | ||
117 | { 'Y', 'U', 'Y', '2', 0x00, 0x00, 0x10, 0x00, \ | ||
118 | 0x80, 0x00, 0x00, 0x00, 0x00, 0x38, 0x9b, 0x71} | ||
116 | #define UVC_GUID_FORMAT_NV12 \ | 119 | #define UVC_GUID_FORMAT_NV12 \ |
117 | { 'N', 'V', '1', '2', 0x00, 0x00, 0x10, 0x00, \ | 120 | { 'N', 'V', '1', '2', 0x00, 0x00, 0x10, 0x00, \ |
118 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} | 121 | 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} |
@@ -149,7 +152,7 @@ struct uvc_xu_control { | |||
149 | #define UVC_MAX_STATUS_SIZE 16 | 152 | #define UVC_MAX_STATUS_SIZE 16 |
150 | 153 | ||
151 | #define UVC_CTRL_CONTROL_TIMEOUT 300 | 154 | #define UVC_CTRL_CONTROL_TIMEOUT 300 |
152 | #define UVC_CTRL_STREAMING_TIMEOUT 3000 | 155 | #define UVC_CTRL_STREAMING_TIMEOUT 5000 |
153 | 156 | ||
154 | /* Devices quirks */ | 157 | /* Devices quirks */ |
155 | #define UVC_QUIRK_STATUS_INTERVAL 0x00000001 | 158 | #define UVC_QUIRK_STATUS_INTERVAL 0x00000001 |
@@ -242,7 +245,8 @@ struct uvc_control { | |||
242 | uvc_control_info. */ | 245 | uvc_control_info. */ |
243 | __u8 dirty : 1, | 246 | __u8 dirty : 1, |
244 | loaded : 1, | 247 | loaded : 1, |
245 | modified : 1; | 248 | modified : 1, |
249 | cached : 1; | ||
246 | 250 | ||
247 | __u8 *data; | 251 | __u8 *data; |
248 | }; | 252 | }; |
@@ -533,6 +537,7 @@ struct uvc_driver { | |||
533 | #define UVC_WARN_MINMAX 0 | 537 | #define UVC_WARN_MINMAX 0 |
534 | #define UVC_WARN_PROBE_DEF 1 | 538 | #define UVC_WARN_PROBE_DEF 1 |
535 | 539 | ||
540 | extern unsigned int uvc_clock_param; | ||
536 | extern unsigned int uvc_no_drop_param; | 541 | extern unsigned int uvc_no_drop_param; |
537 | extern unsigned int uvc_trace_param; | 542 | extern unsigned int uvc_trace_param; |
538 | extern unsigned int uvc_timeout_param; | 543 | extern unsigned int uvc_timeout_param; |
@@ -552,16 +557,6 @@ extern unsigned int uvc_timeout_param; | |||
552 | #define uvc_printk(level, msg...) \ | 557 | #define uvc_printk(level, msg...) \ |
553 | printk(level "uvcvideo: " msg) | 558 | printk(level "uvcvideo: " msg) |
554 | 559 | ||
555 | #define UVC_GUID_FORMAT "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-" \ | ||
556 | "%02x%02x%02x%02x%02x%02x" | ||
557 | #define UVC_GUID_ARGS(guid) \ | ||
558 | (guid)[3], (guid)[2], (guid)[1], (guid)[0], \ | ||
559 | (guid)[5], (guid)[4], \ | ||
560 | (guid)[7], (guid)[6], \ | ||
561 | (guid)[8], (guid)[9], \ | ||
562 | (guid)[10], (guid)[11], (guid)[12], \ | ||
563 | (guid)[13], (guid)[14], (guid)[15] | ||
564 | |||
565 | /* -------------------------------------------------------------------------- | 560 | /* -------------------------------------------------------------------------- |
566 | * Internal functions. | 561 | * Internal functions. |
567 | */ | 562 | */ |