Re: [REVIEWv2 PATCH 00/34] Add support for complex controls, use in solo/go7007

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

 



On 02/16/2014 09:14 PM, Sakari Ailus wrote:
> Hi Hans,
> 
> On Mon, Feb 10, 2014 at 09:46:25AM +0100, Hans Verkuil wrote:
>> This patch series adds support for complex controls (aka 'Properties') to
> 
> While the patchset extends the concept of extended controls by adding more
> data types, they should not be called "properties" since they are not. The
> defining aspect of "properties" is to be able to specify to which entity,
> sub-device, pad, video buffer queue, flash led etc. object the said property
> is related to. This is mostly orthogonal to what kind of data types the
> property could have.

For all practical purposes controls are properties. They are properties of
v4l2_subdev, v4l2_device, video_device or v4l2_fh. While we cannot at the moment
assign controls to other v4l2 objects, there is nothing that prevents us from
doing so.

> 
> There's just a single 32-bit reserved field in struct v4l2_ext_control so
> extending the current extended controls (S/G/TRY) interface is not an option
> to support properties. A new ABI (but not necessarily even if probably an
> API as well) would be needed in any case.

Why? I would use that remaining field: the top X bits define the object type
(e.g. PAD) and the lower bits are the object ID (pad number).

> 
> So for the time being I'd wish we continue to use the name "controls" even
> if the control type is not one of the traditional ones.

The cover letter is the only place where the term 'property' is used, mostly
to link into the 'property' discussion we had in the past. But it is a bad idea
to use the that term because they are traditionally called control in V4L2 land.

Mixing those names is just very confusing.

Regards,

	Hans
--
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