From patchwork Fri Mar 20 13:45:43 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: 6056741 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 7C9289F399 for ; Fri, 20 Mar 2015 13:46:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A956F20528 for ; Fri, 20 Mar 2015 13:46:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 387FF20523 for ; Fri, 20 Mar 2015 13:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258AbbCTNpu (ORCPT ); Fri, 20 Mar 2015 09:45:50 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:35261 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbbCTNps (ORCPT ); Fri, 20 Mar 2015 09:45:48 -0400 Received: by labjg1 with SMTP id jg1so87397953lab.2; Fri, 20 Mar 2015 06:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=5SDzXZW1O5xCnPcPOc2GP2I+zse+AnkkqGcYTVmBQ5g=; b=hMKXvfy5ecwTCtL2kF3WLAcB/nWscAKFUvFUcHXJaZYnzDhXC8SOzBVMfQnazTf4ak 5t+ovI4JBviEZa+3NjCJ+A7phcc1W5flw+SQXp2sK4Hd6XHFSWetahQq/o1w5IFU2tyM cMJsW5eqU+2zthoL2hoVkMc5HIlQrPlYQZhANDiwJfolSNEtoCbJh4oq0qh1jm/xXLYx TwTz0gwBQpAFAOoHiCN34b111jaABkTcKFfEBS10aniyfT6/D73w1Wtot/S8E7MkqmXn G6M7rF/cv2ZndmFZpnnh6VweT8i0iaHU/4lOaRk4LpKHSpe8RslC9MguDLTwSCyHdSu5 Q6mg== X-Received: by 10.152.37.69 with SMTP id w5mr73350206laj.15.1426859146077; Fri, 20 Mar 2015 06:45:46 -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 dk7sm945484lbc.28.2015.03.20.06.45.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Mar 2015 06:45:45 -0700 (PDT) From: Ricardo Ribalda Delgado To: Hans Verkuil , Ricardo Ribalda Delgado , 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 Subject: [PATCH v2 2/5] media: New flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE Date: Fri, 20 Mar 2015 14:45:43 +0100 Message-Id: <1426859143-3515-1-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.1.4 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 which 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. So writing to such a control means some action is executed. Signed-off-by: Ricardo Ribalda Delgado --- v2: By Hans Verkuil Reword commit message 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