From patchwork Thu Mar 19 15:21:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 6050671 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6A00B9F2A9 for ; Thu, 19 Mar 2015 15:23:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9CAD720528 for ; Thu, 19 Mar 2015 15:23:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0FFE20519 for ; Thu, 19 Mar 2015 15:23:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbbCSPVl (ORCPT ); Thu, 19 Mar 2015 11:21:41 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:32900 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751303AbbCSPVg (ORCPT ); Thu, 19 Mar 2015 11:21:36 -0400 Received: by ladw1 with SMTP id w1so64895962lad.0; Thu, 19 Mar 2015 08:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+2XHY4ftGxhmTKwknmIhxlW1eabX0ulMFBUMeNtSpoU=; b=S8QvOJmonVZaFz93VVma1QuMbgWwp5vcdLw6gYhmxoeyGhdFYPbFsV80euICaktV6Y z7vDQ48KkdqHq8Kvh69ZLergWwmlE6PGqgb1hd8R67Yxwz8RpOzV3JtSR6KfXMscnJ/5 9g+vjIBX4zHh7ecOpRIlnwRJMRxB/BrGI5wNvaNHnwSPgw6jtMtWLxRTqXyXLQcU5mwU S9A3dDQdwILRIJ0abPbIsdiKe1mzKigiAn4VcttnybUQ1Hhfs09yh56d2txlqbI9QYYa FsM9+OGkHy82y1BC4gJRf69wQlwYKr6q3aKACeie25VkSz8hYidXOSTqSqLEDM92ln/b CP0w== X-Received: by 10.112.166.102 with SMTP id zf6mr64976446lbb.24.1426778494226; Thu, 19 Mar 2015 08:21:34 -0700 (PDT) Received: from neopili.fritz.box (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by mx.google.com with ESMTPSA id p7sm350623lap.18.2015.03.19.08.21.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Mar 2015 08:21:33 -0700 (PDT) From: Ricardo Ribalda Delgado To: Hans Verkuil , Mauro Carvalho Chehab , Arun Kumar K , Sylwester Nawrocki , Sakari Ailus , Antti Palosaari , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart Cc: Ricardo Ribalda Delgado Subject: [PATCH 2/5] media: New flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE Date: Thu, 19 Mar 2015 16:21:23 +0100 Message-Id: <1426778486-21807-3-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1426778486-21807-1-git-send-email-ricardo.ribalda@gmail.com> References: <1426778486-21807-1-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Create a new flag that represent controls that represent controls that its value needs to be passed to the driver even if it has not changed. They typically represent actions, like triggering a flash or clearing an error flag. Signed-off-by: Ricardo Ribalda Delgado --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index fbdc360..1e33e10 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -1456,6 +1456,7 @@ struct v4l2_querymenu { #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040 #define V4L2_CTRL_FLAG_VOLATILE 0x0080 #define V4L2_CTRL_FLAG_HAS_PAYLOAD 0x0100 +#define V4L2_CTRL_FLAG_EXECUTE_ON_WRITE 0x0200 /* Query flags, to be ORed with the control ID */ #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000