Hi,
I am trying to build your drivers on kernel 2.6.36 (Arch linux).
So far i have managed to compile it with the following changes:
I can't remember off hand but with,
1) Errors " stating two few arguments to function "i2c_new_probed" ... solved by adding NULL as the fourth parameter.
(These errors are not actually related to tbs 6981 drivers but other cards in the v4l tree).
2) Errors stating "ioctl" not found ... solved by changing to the following:
from .ioct = .foo_ioctl --> .unlocked_ioct = foo_ioctl
Removal of the .ioctl seems to be the significant change from kernels upwards of 2.6.35.
I found these "errors" relating to the dvb_core files and v4l2 files mainly
Having changed the source files, I can compile the tbs drivers for my 2.6.36 kernel. The dvb devices / adapters get registered etc., but all is not ok, i can't do much with card.
As I can't afford to get another card - I did not want to experiment further with changing stuff.
But having found this at
http://kerneltrap.org/mailarchive/linux-kernel/2010/8/16/4607070
" You only really
need to change the line with .ioctl=... to .unlocked_ioctl=
and change the prototype of the referenced function to
static long foo_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
"
In your v4l tree I can see that the ioct functions take (struct inode as a parameter) I think - but these could be deleted/changed possibly in the dvb_core / v4l2 files.
Will it be possible to provide updates to this effect and testing, as it seems quite easily changed?
Also any chance of getting a modified .config file that builds only the required modules / drivers for the tbs 6981 rather than the whole v4l as this could help (if not only in compilation time )?
Also any intentions of merging just your drivers with the igor liplianin branch - might help with overcoming these issues with later kernels?
Also any help resolving this matter is much appreciated.
Cheers.
Ezynow.