From patchwork Thu Sep 7 18:42:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9942719 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 41740600CB for ; Thu, 7 Sep 2017 18:47:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C6F028817 for ; Thu, 7 Sep 2017 18:47:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 307D628826; Thu, 7 Sep 2017 18:47:09 +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 5C50E287FD for ; Thu, 7 Sep 2017 18:47:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755218AbdIGSqS (ORCPT ); Thu, 7 Sep 2017 14:46:18 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:36465 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755591AbdIGSmv (ORCPT ); Thu, 7 Sep 2017 14:42:51 -0400 Received: by mail-qk0-f194.google.com with SMTP id i14so307356qke.3; Thu, 07 Sep 2017 11:42:50 -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=NKLwrRD0I2g+ZuVi+DrXALFz8akgggPDiqA9UMa44/hzgDgFNp3ktEtxQ76VJgDI6j oKAG59EcFRSYwkNLFCDWpX2i1flgL6dtmDw3mX9ZD+xOecsNfuKPKGk+CX1reh4obNlv YxC6Oh7Ydn5m2wDdjsGHvHQ/+9vnEH6k6NHfIaZkw9UoWyxEvb4OK/MDo63VbQaXL1sH JVHjFf3cgDYslnMfe6ciIHK2FR+ZT0UGLhkP0PX4b1xQh6eudJBLhxCZKwoyWuKWXyvU AB1UMhtFsx1CpygyIXm/d2FNXLcEQurnU6ws8OlNnzC/5JXghTECERAL1rvlkxDCjGeJ Zdcw== X-Gm-Message-State: AHPjjUj7YgYDHf/YEy0K4v48v6pVzcKd6jxQ/9sQKqeDItA408a6ITSq rRPiP66qyn7ipbteR84= X-Google-Smtp-Source: AOwi7QC8HD0Ri5pIK7SXD0WmivOKWFJ5efg6LGahEqdgvCAFVXb1pEjROwZ+lRoyX5dL2Q+Y/aSEnQ== X-Received: by 10.55.215.140 with SMTP id t12mr377568qkt.61.1504809770154; Thu, 07 Sep 2017 11:42:50 -0700 (PDT) Received: from localhost.localdomain ([187.10.21.246]) by smtp.gmail.com with ESMTPSA id v30sm213216qtg.70.2017.09.07.11.42.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2017 11:42:49 -0700 (PDT) From: Gustavo Padovan To: linux-media@vger.kernel.org Cc: Hans Verkuil , Mauro Carvalho Chehab , Shuah Khan , linux-kernel@vger.kernel.org, Gustavo Padovan Subject: [PATCH v3 05/15] [media] uvc: enable subscriptions to other events Date: Thu, 7 Sep 2017 15:42:16 -0300 Message-Id: <20170907184226.27482-6-gustavo@padovan.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170907184226.27482-1-gustavo@padovan.org> References: <20170907184226.27482-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); } }