Re: [linuxtv-commits] [hg:v4l-dvb] Add a quick howto explaining how to add a newer driver at the tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Qua, 2007-08-01 às 21:18 +0400, Manu Abraham escreveu:> On 8/1/07, Patch from Mauro Carvalho Chehab <hg-commit@xxxxxxxxxxx> wrote:> > The patch number 5966 was added via Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>> > to http://linuxtv.org/hg/v4l-dvb master development tree.> >> > Kernel patches at this development tree might be modified to keep backward> > compatibility with older kernels. Those compatibility stuff will be removed> > during preparation to be included at kernel mainstream.> >> > If anyone has any objections, please let us know by sending a message to:> >         v4l-dvb-maintainer@xxxxxxxxxxx> >> > ------> >> > From: Mauro Carvalho Chehab  <mchehab@xxxxxxxxxxxxx>> > Add a quick howto explaining how to add a newer driver at the tree> >> >> >> >> > Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>> > > > Changes like these should not be from a single person's thoughts.
Feel free to send your contributions.> > > > > +> > +9. Creating a newer driver> > +   =======================> > +> > +   This quick HOWTO explains how to create a new driver using v4l-dvb> > +   tree.> > +> > +   The v4l-dvb tree have a the following basic structure:> > +       /> > +       |-- Documentation> > +       |   |-- dvb             <== DVB drivers documentation> > +       |   `-- video4linux     <== V4L drivers documentation> > +       |-- drivers> > +       |   `-- media> > +       |       |-- common      <== Common stuff, like IR> > +       |       |-- dvb         <== DVB only drivers> > +       |       |-- radio       <== V4L Radio only drivers> > +       |       `-- video       <== V4L Analog TV  (plus radio and/or> > +       |                                           DVB) drivers> > +       `-- include> > +           |-- linux           <== V4L userspace API files> > +           |   `-- dvb         <== DVB userspace API files> > +           `-- media           <== V4L internal API files> > +> > +   9.1 - simple drivers> > +   ====================> > +> > +   For very simple drivers that have only one .c and one .h file, the> > +   recommended way is not to create a newer directory, but keep the> > +   driver into an existing one.> > +> > +   Assumming that the will be V4L+DVB, the better place for it to be is under> > +   /linux/drivers/media/video. Assumming also that the newer driver> > +   will be called as "newdevice", you need to do:> > +> > +   a) add at /linux/drivers/media/video/Kconfig something like:> > > What makes this a better place ? IMO, it is upto the author where he> wants to put it.
This is the basic way where all newer drivers are being added. Ofcourse, this quick howto doesn't cover all cases. It just helps newbiesto start working with v4l-dvb.
Notice: Please avoid keeping linuxtv-commits at C/C. The list should beused only for committed patches. I've removed the linux-commits, andreplaced by the proper ML's.
-- Cheers,Mauro

_______________________________________________linux-dvb mailing listlinux-dvb@xxxxxxxxxxxxxxx://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux