|
|
|
Re: Template for a new driver | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Mon, Dec 15, 2008 at 5:06 AM, Hans Verkuil <hverkuil@xxxxxxxxx> wrote: > On Monday 15 December 2008 02:01:14 Devin Heitmueller wrote: >> Hello, >> >> I am writing a new driver for a video decoder, and wanted to ask if >> there was any particular driver people would suggest as a model to >> look at for new drivers. For example, I am not completely familiar >> with which interfaces are deprecated, and want to make sure I use a >> driver as a template that reflects the latest standards/conventions. >> >> Suggestions welcome. >> >> Thanks in advance, >> >> Devin > > Hi Devin, > > You definitely want to use the new v4l2_subdev framework for this. Read > Documentation/video4linux/v4l2-framework.txt for more info. > > A good example template is probably saa7115.c. Not as big and > complicated as the audio-video decoder cx25840, but still a good > non-trivial example. > > I also recommend using struct v4l2_i2c_driver_data if you desire to be > compatible with older kernels. The main reason for having this struct > is to hide all the ugly kernel #ifdefs. > > Regards, > > Hans Thanks for the feedback. Because I didn't wait for more responses last night, I ended up using the cx25840 driver as the base, which seems to have been a good choice. Cheers, Devin -- Devin J. Heitmueller http://www.devinheitmueller.com AIM: devinheitmueller -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
[Linux Media] [Older V4L] [Linux DVB] [Video Disk Recorder] [Linux Kernel] [Asterisk] [Photo] [DCCP] [Netdev] [Xorg] [Util Linux NG] [Xfree86] [Free Photo Albums] [Fedora Users] [Fedora Women] [ALSA Users] [ALSA Devel] [SSH] [DVB Maintainers] [Linux USB] [Yosemite Information]
![]() |
![]() |