From patchwork Fri Jul 22 14:07:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 9243693 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 4C449607D3 for ; Fri, 22 Jul 2016 14:07:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D2DA27D76 for ; Fri, 22 Jul 2016 14:07:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 314EB27FA9; Fri, 22 Jul 2016 14:07:57 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 B90BB27FA7 for ; Fri, 22 Jul 2016 14:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753989AbcGVOHo (ORCPT ); Fri, 22 Jul 2016 10:07:44 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:35252 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbcGVOHj (ORCPT ); Fri, 22 Jul 2016 10:07:39 -0400 Received: by mail-lf0-f68.google.com with SMTP id l89so7629448lfi.2; Fri, 22 Jul 2016 07:07:38 -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; bh=tO+GXy6yqSXdh+MtW5xIRo74grb3Zl+NA1GIzZBJoYQ=; b=vtNPo9uugMffPmaJ13oF1BMU4fF2NiecL2cx82LTZFfsOiHQvUcZSJA4TDZtx3ZNKa hiBJ/+XDNc2/9OT+w/vM2RpS79Gp81q77jfxLaqfURExB9bWaAcnb0JBRHBpoeZAmV9U 18ildHqW0/stG7PorOkIH4Z1gsFNolKT6aZWD9C2Jjj969bAJEKjptXZBhNIHYs+zb4D 8wotkjC/Ru3meTlkM+K1n2xhr2Vjl8DIsIK5tsRjB506+oHBNJZtvGTCOJErmhnN4kIC OzKe6dMxhIP1e6i8p4PBFbfxUJdSRhY6+LLmjT7z23B0cYh+JVGX7nc3FPuXO7/fR4ba XQhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tO+GXy6yqSXdh+MtW5xIRo74grb3Zl+NA1GIzZBJoYQ=; b=YLuWSztcU+QgJRDcq8ETBTICJGO5L2YMeoJ3kwQSvWx3x14nOJqlBwXZ/OeVGiLSs0 o77U9TYO8GsxrIWR3BtmiBvEUVsbyc6p1rPijIts/mvT7KkIfb2CU3cmpKAjHjTD1t5t D161qqlNjfQuIfhPkkHtcgyc63EitATpEZbAyS9RtqKMO61moLwkZHT221jVys00oPU7 014JLAnDmT3aE7hDhfJuTJfKlYNXETKQiVMJD7iTcieXtwr0NOkbGo1W+PfEKh0B4IkQ L3eL2jA3Wni5k0HizJ4w46PC0/2ApKeTl3ZhcSvuf3kZ9CREu/8g1geBFOHE/vtUhy7+ XOxw== X-Gm-Message-State: AEkoouv8rOGaOa3omq9QeE7oXHpvVbCn2P9qmIef1IZgxxzm9Q3msSJ0fvFPAdVXXcNyHQ== X-Received: by 10.46.33.72 with SMTP id h69mr2665976ljh.45.1469196457189; Fri, 22 Jul 2016 07:07:37 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id q73sm1901408lfg.17.2016.07.22.07.07.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jul 2016 07:07:36 -0700 (PDT) From: Ricardo Ribalda Delgado To: Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , linux-media@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH] [media] Documentation: Fix V4L2_CTRL_FLAG_VOLATILE Date: Fri, 22 Jul 2016 16:07:34 +0200 Message-Id: <1469196454-1396-1-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.8.1 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 V4L2_CTRL_FLAG_VOLATILE behaviour when V4L2_CTRL_FLAG_EXECUTE_ON_WRITE is set was not properly explained. Reported-by: Dimitrios Katsaros Credit-to: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/media/uapi/v4l/vidioc-queryctrl.rst b/Documentation/media/uapi/v4l/vidioc-queryctrl.rst index 8d6e61a7284d..3a30d6cf70b4 100644 --- a/Documentation/media/uapi/v4l/vidioc-queryctrl.rst +++ b/Documentation/media/uapi/v4l/vidioc-queryctrl.rst @@ -728,10 +728,10 @@ See also the examples in :ref:`control`. case the hardware calculates the gain value based on the lighting conditions which can change over time. - .. note:: Setting a new value for a volatile control will have no - effect and no ``V4L2_EVENT_CTRL_CH_VALUE`` will be sent, unless - the ``V4L2_CTRL_FLAG_EXECUTE_ON_WRITE`` flag (see below) is - also set. Otherwise the new value will just be ignored. + .. note:: Setting a new value for a volatile control will be ignored + unless `V4L2_CTRL_FLAG_EXECUTE_ON_WRITE`` flag (see below) is also set. + Setting a new value for a volatile contol will never trigger a + ``V4L2_EVENT_CTRL_CH_VALUE`` event. - .. row 9