VLC 2.1.2 incorrect tuning frequency V4L2
Hi.
I'm not sure, is it a bug in recent VLC 2.1 branch, or it is special case with tuner XC5000C, and probably it has an incomplete driver, but I feel I must inform developers about.
In version of VLC 2.0.9 (was installed in binary form from rpmfusion) there was not problems at all with seting up tuner to analog frequency with v4l2.
Without correction in source file, VLC 2.1.2 setting up incorrect frequency for mentioned tuner.
OS Fedora 19 I386. VLC 2.1.2 is compiled from release sources. TV tuner card with SAA7135 and XC5000C chips.
If I patch following file ~/vlc-2.1.2/modules/access/v4l2/video.c with:
diff -up video.c.orig video.c
--- video.c.orig 2013-06-25 02:00:38.000000000 +0800
+++ video.c 2014-01-05 19:04:51.730280473 +0800
@@ -193,7 +193,8 @@ int SetupTuner (vlc_object_t *obj, int f
struct v4l2_frequency frequency = {
.tuner = idx,
.type = tuner.type,
- .frequency = freq * 125 / 2
+// .frequency = freq * 125 / 2
+ .frequency = freq / 62.5
};
if (v4l2_ioctl (fd, VIDIOC_S_FREQUENCY, &frequency) < 0)
then tuner is able to tune to correct frequency again, like with VLC 2.0.9