[mythtv] [FIX] V4L2 controls

Isaac Richards ijr at po.cwru.edu
Sat Jan 3 21:58:34 EST 2004


On Saturday 03 January 2004 01:26 pm, steve at nexusuk.org wrote:
> I just upgraded my BTTV driver to version 0.9.12 and my
> brightness/contrast/colour/etc controls stopped working.  It looks like
> they've changed the value of VIDIOC_S_CTRL.  In
> libs/libmythtv/videodev2_myth.h it's defined as:
>     #define VIDIOC_S_CTRL       _IOR  ('V', 28, struct v4l2_control)
>
> Changing it to:
>     #define VIDIOC_S_CTRL       _IOWR  ('V', 28, struct v4l2_control)
> makes it work again.

Breaks old drivers, of course.  Your bttv driver should be backward compatible 
with the old ioctls.  If it's not, it's a bug in the bttv driver.

Isaac


More information about the mythtv-dev mailing list