Re: Add private controls to ctrl_handler

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

 



Hans Verkuil <hverkuil <at> xs4all.nl> writes:

> 
> Don't use V4L2_CID_PRIVATE_BASE, that doesn't work with the control framework
> (for good but somewhat obscure reasons).
> 
> Instead use (V4L2_CID_USER_BASE | 0x1000) as the base for your private
controls.
> If you want to upstream the code, then you should define a range for the
private
> controls of this driver in v4l2-controls.h. Search for e.g.
V4L2_CID_USER_S2255_BASE
> in that header to see how it is done.
> 
> Regards,
> 
> 	Hans
> 

thanks for your help. It worked for me with "(V4L2_CID_USER_BASE | 0x1000)"
base and the "v4l2_ctrl_new_custom" function.

Regards, Tom

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