hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/usb/uvc/uvcvideo.h
....@@ -206,6 +206,7 @@
206206 #define UVC_QUIRK_RESTORE_CTRLS_ON_INIT 0x00000400
207207 #define UVC_QUIRK_FORCE_Y8 0x00000800
208208 #define UVC_QUIRK_FORCE_BPP 0x00001000
209
+#define UVC_QUIRK_WAKE_AUTOSUSPEND 0x00002000
209210
210211 /* Format flags */
211212 #define UVC_FMT_FLAG_COMPRESSED 0x00000001
....@@ -672,6 +673,7 @@
672673 /* Status Interrupt Endpoint */
673674 struct usb_host_endpoint *int_ep;
674675 struct urb *int_urb;
676
+ bool flush_status;
675677 u8 *status;
676678 struct input_dev *input;
677679 char input_phys[64];
....@@ -841,7 +843,9 @@
841843 int uvc_ctrl_init_device(struct uvc_device *dev);
842844 void uvc_ctrl_cleanup_device(struct uvc_device *dev);
843845 int uvc_ctrl_restore_values(struct uvc_device *dev);
844
-bool uvc_ctrl_status_event(struct urb *urb, struct uvc_video_chain *chain,
846
+bool uvc_ctrl_status_event_async(struct urb *urb, struct uvc_video_chain *chain,
847
+ struct uvc_control *ctrl, const u8 *data);
848
+void uvc_ctrl_status_event(struct uvc_video_chain *chain,
845849 struct uvc_control *ctrl, const u8 *data);
846850
847851 int uvc_ctrl_begin(struct uvc_video_chain *chain);