summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/uvc_queue.h
diff options
context:
space:
mode:
authorDan Vacura <w36195@motorola.com>2022-04-13 22:24:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-21 19:15:07 +0300
commitbe30e3502771ac0b5080ec61223d915354cde1cc (patch)
treeb642d401f86d44c73e9aefcecbc1031386e9b15f /drivers/usb/gadget/function/uvc_queue.h
parent324e4f85070f89b58c5f9926370ad19dea907dc7 (diff)
downloadlinux-be30e3502771ac0b5080ec61223d915354cde1cc.tar.xz
usb: gadget: uvc: remove pause flag use
The pause flag doesn't appear to serve a purpose as it is possible for the pump worker thread to not be running when new buffers are queued. Before the following change was introduced: "43cd0023872e usb: gadget: uvc_video: add worker to handle the frame pumping", the pause flag status was discarded and never returned. This masked a current issues of the userspace receiving non-zero values (considered unsuccessful) and prevents trace_v4l2_qbuf() from being called. Signed-off-by: Dan Vacura <w36195@motorola.com> Link: https://lore.kernel.org/r/20220413192402.26063-1-w36195@motorola.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_queue.h')
-rw-r--r--drivers/usb/gadget/function/uvc_queue.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/uvc_queue.h b/drivers/usb/gadget/function/uvc_queue.h
index 05360a0767f6..42aaf8b227dd 100644
--- a/drivers/usb/gadget/function/uvc_queue.h
+++ b/drivers/usb/gadget/function/uvc_queue.h
@@ -43,7 +43,6 @@ struct uvc_buffer {
#define UVC_QUEUE_DISCONNECTED (1 << 0)
#define UVC_QUEUE_DROP_INCOMPLETE (1 << 1)
-#define UVC_QUEUE_PAUSED (1 << 2)
struct uvc_video_queue {
struct vb2_queue queue;