You shouldn't need videodevX, or the new i2c stack, probably not bttv 0.8 either! Just as an overview: There are two video API's for Linux, V4L and V4L2. V4L is supported by the kernel, and is what the bttv driver uses. V4L2 needs the videodevX packages, and uses the bttv2 or bttv 0.8.x driver. There are four(!) bttv drivers for Bt8x8 based cards: the one in the kernel (V4L), Gerd's 0.7.x one (V4L), Gerd's 0.8.x one (V4L/V4L2) and Justin's bttv2 (V4L2). The difference between the kernel driver and the 0.7.x one is that the 0.7.x one is generally more up to date and better maintained - but the kernel one roughly keeps up with it. The 0.8.x driver may fix some problems in 0.7.x (which works perfectly for me), but is newer and more experimental. The only time when you need to patch your kernel with the new i2c stack is if you want to use the 0.7.x driver with the 2.2 kernel. Unless you have a specific reason to want V4L2, I'd suggest you start using the V4L API and the 2.4 kernel bttv driver, or the 0.7.x driver - you shouldn't need anything else. >From your description I'd guess your real problem is that there's just something a bit wrong with your capture code - can you post your actual capture loop code? Ben Anders Gnistrup wrote: > > OK I now it is a bit strange to reply my own mail but I may have found the > problem. > if this is not the true replay. > > I have not patched the kernel with the new i2c header file. trying with this > insted. > SO I gees the procedure is > > make patch and patch kernel new i2c module > videodevX-20010501.tgz (tar -zxvf make make install) > driver-20010316.tgz (tar -axvf make make install) (is this a 8.0.x > version?) > > Anders Gnistrup > > Anders Gnistrup wrote: > > > Hi all > > I am making a grabber that have to grab pictures every 1/25 sec. The picktures > > have to be copyed to some other location for further calculations. I have > > tried to do so with the standard bttv driver shiped with kernel 2.4.4. I am > > using a hauppage winTV card. I have to mmap bufferes. I have made a sample > > program that look like this. > > > > start grab buffer > > shift buffer > > while(1) { > > start grab buffer > > shift buffer > > sync buffer > > copy buffer > > } > > > > but I get the same picture from both buffers (pic 0=1, 1=2, 3=4,......). The > > strange thing is that i get the pictures with exact 25Hz. > > > > So I tried to read some doc on the net. I found a bttv 8.0.16 bttv driver that > > could grab with 25Hz, and olso stated that the 7.xx could not do so. > > > > perfect..... > > > > so I have downloaded a lot of tgz files from the net but I think I miss > > something. > > > > This is what I have tried. > > > > videodevX-20010501.tgz (tar -zxvf make make install) > > driver-20010316.tgz (tar -axvf make make install) > > from this I get > > bttv-driver.c:346:9: warning: pasting "(" and "KERN_DEBUG" does not give a > > valid preprocessing token > > bttv-driver.c:436:25: warning: pasting "(" and ""bttv%d: PLL: is off\n"" does > > not give a valid preprocessing token > > and A LOT MORE... > > > > I olso tried this > > bttv-0.8.16.tar.gz (tar -zxvf ) > > patch -p1 < patch patch-v4l2-2.4.4 (does patch , but not with a clean kernel. > > some setting have to be enabled) > > patch -p1 < patch-v4l2-2.4.4-ac6 (gets HUNK. So I tried without this.) > > > > make -> a lot of errors > > > > What am I doing wrong? > > Have I missed something? > > > > I have tried for 2 dayes now. Thats the reason for this mail. I gees the > > answer is simple. > > > > Anders Gnistrup. > > > > _______________________________________________ > > Video4linux-list mailing list > > Video4linux-list@xxxxxxxxxx > > https://listman.redhat.com/mailman/listinfo/video4linux-list > > _______________________________________________ > Video4linux-list mailing list > Video4linux-list@xxxxxxxxxx > https://listman.redhat.com/mailman/listinfo/video4linux-list