From patchwork Mon Mar 13 19:20:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9621925 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 91906604CC for ; Mon, 13 Mar 2017 19:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 791C121E5A for ; Mon, 13 Mar 2017 19:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D88A2850F; Mon, 13 Mar 2017 19:24:37 +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=unavailable 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 2630121E5A for ; Mon, 13 Mar 2017 19:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754221AbdCMTYB (ORCPT ); Mon, 13 Mar 2017 15:24:01 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:36439 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbdCMTUz (ORCPT ); Mon, 13 Mar 2017 15:20:55 -0400 Received: by mail-qk0-f195.google.com with SMTP id n141so38449680qke.3; Mon, 13 Mar 2017 12:20:54 -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=VxvrbujRDOJcs/Wsd2uHXQruPxn4UgNQ/pffLsOEq1Q=; b=CRgpexvL01atsjjeA1byvS1vv7Cag3voERdjnq7lC0W0Pc9fwNrM9QhrMKTBeGdpap 64BYqS/mujkCoXgc+dMVqMAKQd6TFQz+FvrhGeTfDHq7eKfGWyuV55iL2dpdc7qwWY/U C+nDcVUd6wBji3FiqSa0DvTYLIwkRi4UbgJ+P8Y3McHZ7OWulCsXbKizVlg6OYjiLwK2 aSb0eSeG8LGbKt4v/JRyXx/DCNcRtbdVKca3iMQLsHZWEqnMVSTJ6WBOLVXj/HqnpQnk CHwnuQ34g6PPKobpQRwlK87t2094eXlSze+0DoMPnlicgEotXzY5NdIO6yAD6Bs8P8Lh totA== X-Gm-Message-State: AMke39kw9okMTAI2D0OcYH/B+uWiPOIip00CCeSfZjwAAiRm5srY3OShYDm3DYe7wRbkgA== X-Received: by 10.55.105.6 with SMTP id e6mr32305336qkc.252.1489432853262; Mon, 13 Mar 2017 12:20:53 -0700 (PDT) Received: from localhost.localdomain ([179.159.9.225]) by smtp.gmail.com with ESMTPSA id a19sm12821047qta.48.2017.03.13.12.20.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Mar 2017 12:20:52 -0700 (PDT) From: Gustavo Padovan To: linux-media@vger.kernel.org Cc: Hans Verkuil , Mauro Carvalho Chehab , Laurent Pinchart , Javier Martinez Canillas , linux-kernel@vger.kernel.org, Gustavo Padovan Subject: [RFC 04/10] [media] uvc: enable subscriptions to other events Date: Mon, 13 Mar 2017 16:20:29 -0300 Message-Id: <20170313192035.29859-5-gustavo@padovan.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170313192035.29859-1-gustavo@padovan.org> References: <20170313192035.29859-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 more events supported by v4l. 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 3e7e283..dfa0ccd 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); } }