Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1728367 > unrolled thread

[PATCH v3 05/15] [media] uvc: enable subscriptions to other events

Started byGustavo Padovan <gustavo@padovan.org>
First post2017-09-07 20:50 +0200
Last post2017-09-07 20:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v3 05/15] [media] uvc: enable subscriptions to other events Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200

#1728367 — [PATCH v3 05/15] [media] uvc: enable subscriptions to other events

FromGustavo Padovan <gustavo@padovan.org>
Date2017-09-07 20:50 +0200
Subject[PATCH v3 05/15] [media] uvc: enable subscriptions to other events
Message-ID<una2d-3SJ-1@gated-at.bofh.it>
From: Gustavo Padovan <gustavo.padovan@collabora.com>

Call v4l2_ctrl_subscribe_event to subscribe to the BUF_QUEUED event as
well.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
---
 drivers/media/usb/uvc/uvc_v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c
index 3e7e283a44a8..dfa0ccdcf849 100644
--- a/drivers/media/usb/uvc/uvc_v4l2.c
+++ b/drivers/media/usb/uvc/uvc_v4l2.c
@@ -1240,7 +1240,7 @@ static int uvc_ioctl_subscribe_event(struct v4l2_fh *fh,
 	case V4L2_EVENT_CTRL:
 		return v4l2_event_subscribe(fh, sub, 0, &uvc_ctrl_sub_ev_ops);
 	default:
-		return -EINVAL;
+		return v4l2_ctrl_subscribe_event(fh, sub);
 	}
 }
 
-- 
2.13.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web