This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/xawtv3.git tree:

Subject: x11/vbi-gui.c: Convert to use V4L2
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Thu Jan 27 20:19:27 2011 -0200

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 x11/vbi-gui.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/xawtv3.git?a=commitdiff;h=c4f3629e9dbce6a7712d0ccffef604135ecd8cfa

diff --git a/x11/vbi-gui.c b/x11/vbi-gui.c
index 31071f7..dd44363 100644
--- a/x11/vbi-gui.c
+++ b/x11/vbi-gui.c
@@ -911,10 +911,19 @@ static void vbi_station_cb(Widget widget, XtPointer 
client, XtPointer call)
 #endif
 
 #ifdef linux
-#include "videodev.h"
-    if (-1 == ioctl(vbi->fd,VIDIOCSFREQ,&channels[i]->freq))
-       perror("ioctl VIDIOCSFREQ");
+#include <linux/types.h>
+#include "videodev2.h"
+    {
+       struct v4l2_frequency frequency;
+
+       memset (&frequency, 0, sizeof(frequency));
+       frequency.type = V4L2_TUNER_RADIO;
+       frequency.frequency = channels[i]->freq;
+       if (-1 == ioctl(vbi->fd, VIDIOC_S_FREQUENCY, &frequency))
+           perror("ioctl VIDIOCSFREQ");
+    }
 #endif
+
     /* FIXME: should add some BSD code once libzvbi is ported ... */
 }
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to