[mythtv] [FIX] V4L2 controls

Bruce Markey bjm at lvcm.com
Sat Jan 3 23:07:25 EST 2004


Isaac Richards wrote:
> 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.

BTW, FWIW, WORKSFORME. I'm using bttv 0.9.12 w/ Linux 2.4.23
and had no such problem with the V4L2 picture controls.

Make sure you've removed or overwritten and rmmod-ed any of
the old bttv related modules from the kernel modules_install
and be sure you have 'Load "v4l"' in your XF86Config-4 file.

--  bjm


More information about the mythtv-dev mailing list