Re: [PATCH/RFC v3 14/14] vivi: Add controls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/30/2012 06:09 PM, Hans Verkuil wrote:
> On Friday 27 April 2012 16:23:31 Sylwester Nawrocki wrote:
>> This patch is just for testing the new controls, it is NOT
>> intended for merging upstream.
>>
>> Signed-off-by: Sylwester Nawrocki<s.nawrocki@xxxxxxxxxxx>
>> Signed-off-by: Kyungmin Park<kyungmin.park@xxxxxxxxxxx>
>> ---
>>   drivers/media/video/vivi.c |  111 +++++++++++++++++++++++++++++++++++++++++++-
>>   1 file changed, 110 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
>> index d64d482..cbe103e 100644
>> --- a/drivers/media/video/vivi.c
>> +++ b/drivers/media/video/vivi.c
>> @@ -179,6 +179,29 @@ struct vivi_dev {
>>   	struct v4l2_ctrl	   *bitmask;
>>   	struct v4l2_ctrl	   *int_menu;
>>
>> +	struct v4l2_ctrl	   *exposure_bias;
>> +	struct v4l2_ctrl	   *metering;
>> +	struct v4l2_ctrl	   *wb_preset;
>> +	struct {
>> +		/* iso/auto iso cluster */
>> +		struct v4l2_ctrl  *auto_iso;
>> +		struct v4l2_ctrl  *iso;
>> +	};
>> +	struct {
>> +		/* continuous auto focus/auto focus cluster */
>> +		struct v4l2_ctrl  *focus_auto;
>> +		struct v4l2_ctrl  *af_start;
>> +		struct v4l2_ctrl  *af_stop;
>> +		struct v4l2_ctrl  *af_status;
>> +		struct v4l2_ctrl  *af_distance;
>> +		struct v4l2_ctrl  *af_area;
>> +	};
>> +	struct v4l2_ctrl	  *scene_mode;
>> +	struct v4l2_ctrl	  *lock_3a;
>> +	struct v4l2_ctrl	  *colorfx;
>> +	struct v4l2_ctrl	  *wdr;
>> +	struct v4l2_ctrl	  *stabilization;
>> +
> 
> Why add these controls to vivi? It doesn't belong here.

Yeah, my intention was to provide some basic means for validating the
new controls, especially integer menu ones. I really don't use vivi 
for testing, but I think not many people have currently access to the
hardware I work with. So this is just in case Mauro wants to do tests
of the core control framework changes. I agree this patch doesn't 
make sense for anything other than that.

I have also a small patch for v4l2-ctl to support integer menu 
control enumeration. However I run into some weird problems when
I cross compiled it for ARM (individual menu names are not listed)
and didn't get around to fix that yet. So I didn't yet send that 
v4l2-ctl patch out.

--

Regards,
Sylwester
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux