From patchwork Fri Sep 1 01:50:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9933289 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4AED1602F0 for ; Fri, 1 Sep 2017 01:51:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D947283BB for ; Fri, 1 Sep 2017 01:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A5F428173; Fri, 1 Sep 2017 01:51:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0FCA284AF for ; Fri, 1 Sep 2017 01:51:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751456AbdIABvB (ORCPT ); Thu, 31 Aug 2017 21:51:01 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:37006 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751395AbdIABvA (ORCPT ); Thu, 31 Aug 2017 21:51:00 -0400 Received: by mail-qt0-f196.google.com with SMTP id x29so1000138qtc.4 for ; Thu, 31 Aug 2017 18:51:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=paR5DJvdPwQou3Bb0A/BseW0EY8ufH6BITwKAOcLW2s=; b=EVFUkX9dI8SlLezVj5Zu+dQYUUb0UilFQxtnHF8Tjg4edmI8U2wh/ZfMs9rJmqQcIX wOGJdSd5mWCTnay/gp00byL3aQgeAZu8hZunBLLYP8FOJqZKMbt5Jp79A5sa6hTTWByA LiBpE/eASVPgMS9aBS4TZaTcRh0Df4SLBQMfVxikNhhPEFvHz3GpZL6FG5pkvGRqiPQd H1Ah+EOb5QDtNX/0FJjckSCkPCmE9dRzlkGoAEjqezx/Y8/8FjkxmLdf9Q6SxIPlZ0hY vURx2pHey6+Ad3UKpeGExDlpOQdJtsqMjgNVG/6952R9cU4lmd23oigzCLAIJl3jpOBX gR/A== X-Gm-Message-State: AHPjjUhiC61GKZDyMfhYx9cRWF/rrCB4CK8KpXAUZSrjYgh8XJxH9clp 0/Ogzt/oysp4JQtSKU4= X-Google-Smtp-Source: ADKCNb6yv9tP3pf3AelXAu22hkfcw2NZ6JgFwnKZ6UU821gtK06vwYZc6xmcAK6VQYskV0LHZ6RosA== X-Received: by 10.200.4.147 with SMTP id s19mr575485qtg.317.1504230659777; Thu, 31 Aug 2017 18:50:59 -0700 (PDT) Received: from localhost.localdomain ([187.10.21.246]) by smtp.gmail.com with ESMTPSA id o17sm6366232qkl.52.2017.08.31.18.50.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2017 18:50:59 -0700 (PDT) From: Gustavo Padovan To: linux-media@vger.kernel.org Cc: Hans Verkuil , Mauro Carvalho Chehab , Shuah Khan , Gustavo Padovan Subject: [PATCH v2 04/14] [media] uvc: enable subscriptions to other events Date: Thu, 31 Aug 2017 22:50:31 -0300 Message-Id: <20170901015041.7757-5-gustavo@padovan.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170901015041.7757-1-gustavo@padovan.org> References: <20170901015041.7757-1-gustavo@padovan.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Call v4l2_ctrl_subscribe_event to subscribe to the BUF_QUEUED event as well. Signed-off-by: Gustavo Padovan --- 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); } }