From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753895AbbCPLFP (ORCPT ); Mon, 16 Mar 2015 07:05:15 -0400 Received: from lb3-smtp-cloud6.xs4all.net ([194.109.24.31]:41966 "EHLO lb3-smtp-cloud6.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753840AbbCPLFO (ORCPT ); Mon, 16 Mar 2015 07:05:14 -0400 Message-ID: <5506B8E1.3030300@xs4all.nl> Date: Mon, 16 Mar 2015 12:05:05 +0100 From: Hans Verkuil User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-Version: 1.0 To: Ricardo Ribalda Delgado , Laurent Pinchart CC: Mauro Carvalho Chehab , Hans Verkuil , Sylwester Nawrocki , Sakari Ailus , Antti Palosaari , linux-media , LKML Subject: Re: [PATCH v4 1/2] media/v4l2-ctrls: Always run s_ctrl on volatile ctrls References: <1424185706-16711-1-git-send-email-ricardo.ribalda@gmail.com> <54EAED82.5040804@xs4all.nl> <1805679.hlRzVeq61B@avalon> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2015 05:45 PM, Ricardo Ribalda Delgado wrote: > Hello > > Back from holidays and back to this issue. Sorry for the delay. > >> I'm not sure about Ricardo's use case, is it the one we've discussed on #v4l ? >> If so, and if I recall correctly, the idea was to perform an action with a >> parameter, and didn't require volatility. > > In my case, there is a trigger overflow bit. The user acks the trigger > overflow by writting any value to the control. > > There is no parameter. In that sense it looks like a volatile read + a > button on a controll. > >> Your proposal is interesting as well, but I'm not sure about the >> V4L2_CTRL_FLAG_ACTION name. Aren't all controls supposed to have an action of >> some sort ? That's nitpicking of course. Actually, usually controls just set some parameter and if the new value is the same as the old value, then nothing is done at all. A button control always executes some action immediately. > > What about the name STATELESS_WRITE ? or perhaps VOLATILE_WRITE? I > dont care about the name :), but better have it solved before I write > the doc :P How about: ACT_ON_WRITE or EXECUTE_ON_WRITE? > >> >> Also, should the action flag be automatically set for button controls ? Button >> controls would in a way become type-less controls with the action flag set, >> that's interesting. I suppose type-less controls without the action flag don't >> make sense. Yes, this flag will be set for button controls. Those are already WRITE_ONLY and all WRITE_ONLY controls will set the new flag as well. Regards, Hans