On Tue, Mar 06, 2001 at 08:34:56PM +0100, Jakob Kemi wrote:
> Hello everybody.
>
> I've got a webcam named Lifeview Flycam Supra
> which uses the w9966cf interface chip for the LPT port.
> While working on a small hobby-robotic project I've
> created complete and working drivers for it. (not Linux)
> To share some with the community and learn about
> driver creation for linux I'm planning to port my work
> to Linux 2.4.x and I now need some directions.
>
> Should I write it for video4linux or for v4l2?
> Is there anything special I should consider.
> Does it exists any template drivers or good tutorials?
Since I had about the same intention writing the cpia driver I might
qualify to answer. The correct answer really depends on the kind of
stuff you want to write. My intention was to have a driver for the
applications around so I chose v4l. My suggestion to proceed in that
case: use a working driver as a template. Concentrate on the core
functionality first, i.e. do not start with a multithreaded double
buffer kernel-thread and other fancy stuff model first. Also get the
Rubini-book about kernel-development. The API is ancient but the
principles are good. There are also some kernel-howtos around (AFAIR
about locking, interrupt handling etc.) that are quite important and
more or less up to date. And if you really want to write a fency
state-of-the-art driver that can utilize smp and other cute things
start reading the kernel-list (I never did, since I do not have the
time).
Have fun, Peter
--
You can weave your life so long - only so long, and then a thing
in the world out of your control will tug at one vital thread
and leave you patternless and subdued.
-------------------------------
Email: [EMAIL PROTECTED]
_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list