Re: Extended driver private controls?

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

 



On Thursday 08 January 2009 17:30:47 Aguirre Rodriguez, Sergio Alberto 
wrote:
> > From: linux-omap-owner@xxxxxxxxxxxxxxx [mailto:linux-omap-
> > owner@xxxxxxxxxxxxxxx] On Behalf Of Sakari Ailus
> > Sent: Thursday, January 08, 2009 9:47 AM
> >
> > ext Hans Verkuil wrote:
> > > Hi Sakari,
> >
> > Hello,
> >
> > ...
> >
> > > What I did to support private controls is to allow drivers to add
> > > their
> >
> > own
> >
> > > controls to the various classes, as long as the low 16 bits are
> > > >=
> >
> > 0x1000.
> >
> > > You add them to videodev2.h (see the CX2341X private controls),
> > > and you
> >
> > just
> >
> > > pick a starting base such as 'V4L2_CTRL_CLASS_MPEG | 0x1100'.
> > >
> > > This way the controls are together in one header, they have
> > > unique IDs,
> >
> > and
> >
> > > you can assign them to a specific class.
> >
> > ...
> >
> > > So, to summarize: for new drivers I recommend using
> >
> > V4L2_CTRL_FLAG_NEXT_CTRL
> >
> > > and adding the private controls to videodev2.h and to prepare
> >
> > documentation
> >
> > > for inclusion with the v4l2 spec. If you really must support old
> > > apps,
> >
> > then
> >
> > > you might have to make duplicate PRIVATE_BASE controls (yuck!),
> > > but I
> >
> > hope
> >
> > > that won't be necessary.
> >
> > Thanks, Hans, for the definitive answer. This is what we'll do
> > then.
>
> Hi,
>
> Just for clarifying: So this replaces the use of PRIVATE_BASE?:
>
> CLASS_MPEG + 0x1000 + Custom number

Yes, this is the right one.


>
> Or its like:
>
> PRIVATE_BASE + CLASS_MPEG + 0x1000 + Custom number ?

No, forget about PRIVATE_BASE.

Regards,

	Hans

>
> Thanks,
> Sergio
>
> > Cheers,
> >
> > --
> > Sakari Ailus
> > sakari.ailus@xxxxxxxxx
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux