This is against 2.6.15.7. Janitorial fix attached.

[EMAIL PROTECTED] ivtv-0.4]# make
make -C driver all
make[1]: Entering directory `/root/ivtv/ivtv-0.4/driver'
created ivtv-svnversion.h
make -C /lib/modules/2.6.15.7-PIII-061031/build
M=/root/ivtv/ivtv-0.4/driver modules
make[2]: Entering directory `/mnt/spare/kernel/linux-PIII'
 CC [M]  /root/ivtv/ivtv-0.4/driver/cx25840-vbi.o
/root/ivtv/ivtv-0.4/driver/cx25840-vbi.c: In function `cx25840_vbi':
/root/ivtv/ivtv-0.4/driver/cx25840-vbi.c:175: error: `is_pal'
undeclared (first use in this function)
/root/ivtv/ivtv-0.4/driver/cx25840-vbi.c:175: error: (Each undeclared
identifier is reported only once
/root/ivtv/ivtv-0.4/driver/cx25840-vbi.c:175: error: for each function
it appears in.)
make[3]: *** [/root/ivtv/ivtv-0.4/driver/cx25840-vbi.o] Error 1
make[2]: *** [_module_/root/ivtv/ivtv-0.4/driver] Error 2
make[2]: Leaving directory `/mnt/spare/kernel/linux-PIII'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/ivtv/ivtv-0.4/driver'

Cheers,
Wilf.
--
[EMAIL PROTECTED] | MythTV blog: http://mezzanines.blogspot.com/
Index: driver/cx25840-vbi.c
===================================================================
--- driver/cx25840-vbi.c	(revision 3528)
+++ driver/cx25840-vbi.c	(working copy)
@@ -150,6 +150,7 @@
 	struct cx25840_state *state = i2c_get_clientdata(client);
 	struct v4l2_format *fmt;
 	struct v4l2_sliced_vbi_format *svbi;
+	int is_pal = !(cx25840_get_v4lstd(client) & V4L2_STD_NTSC);
 
 	switch (cmd) {
 	case VIDIOC_G_FMT:
@@ -197,7 +198,6 @@
 
 	case VIDIOC_S_FMT:
 	{
-		int is_pal = !(cx25840_get_v4lstd(client) & V4L2_STD_NTSC);
 		int vbi_offset = is_pal ? 1 : 0;
 		int i, x;
 		u8 lcr[24];
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to