[mythtv] [patch] ATSC tuning fix (for bug 102 in bugzilla)

Daniel Thor Kristjansson danielk at mrl.nyu.edu
Wed Jan 5 16:05:06 EST 2005


This is actually two patches, the verbosity patch changes perror and 
other error messages to use the VERBOSE macro. The second patch is more 
important, it fixes a couple problems and works around a problem with
the pcHDTV driver's v4l2 implementation.

In CheckSignal() "if (videofd <= 0)" is changed to  "if (videofd < 0)" 
because a 0 file descriptor is valid.

In SwitchToInput() a v4l version 1 fallback is provided for setting the 
video mode. This is needed because the pcHDTV driver does not accept the 
VIDIOC_S_STD io control.

videomode is split into two variables, videomode_v4l1 and
videomode_v4l2. This allows SwitchToInput to remain fairly simple. 
videomode_v4l2 is also using the v4l2_std_id type, a 64 bit integer. 
This is because the videomode_v4l2 variable is a bitmap and not a list 
like videomode_v4l1, so it can't use a 32 bit integer.

There are also a few new VERBOSE macros in the functionality patch, this 
was done to retain compatibility with the verbosity patch.

-- Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: channel-verbose.patch.bz2
Type: application/octet-stream
Size: 2395 bytes
Desc: 
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050105/08eef573/channel-verbose.patch.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: channel-functionality.patch.bz2
Type: application/octet-stream
Size: 2515 bytes
Desc: 
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050105/08eef573/channel-functionality.patch.obj


More information about the mythtv-dev mailing list