Em Qua, 2007-08-01 às 21:18 +0400, Manu Abraham escreveu: > On 8/1/07, Patch from Mauro Carvalho Chehab <[EMAIL PROTECTED]> wrote: > > The patch number 5966 was added via Mauro Carvalho Chehab <[EMAIL > > PROTECTED]> > > 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: > > [EMAIL PROTECTED] > > > > ------ > > > > From: Mauro Carvalho Chehab <[EMAIL PROTECTED]> > > Add a quick howto explaining how to add a newer driver at the tree > > > > > > > > > > Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]> > > > > 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. Of course, this quick howto doesn't cover all cases. It just helps newbies to start working with v4l-dvb. Notice: Please avoid keeping linuxtv-commits at C/C. The list should be used only for committed patches. I've removed the linux-commits, and replaced by the proper ML's. -- Cheers, Mauro _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb