Difference between revisions of "Development: How to add support for a device"

From LinuxTVWiki
Jump to: navigation, search
Line 1: Line 1:
Here's a placemarker -- it would be nice if someone would fill in some steps people can take here.
+
First you should find, how your card identify yourself on pci (just lspci and lspci -vn). This give you type
 +
of main decoder chip and 
  
With a previously unsupported card, you'll have to figure out what inputs connect to what channels on the chips, and thus come up with a new card definition dataset to put into the appropriate driver -- bttv, cx88, or sa7134.
+
Next, you should try to identify tuner chips that your card uses. There can be tuner chip, demodulator or both hidden
 +
in metallic box connected directly to antenna input. Often tuner type is printed under sticker.
  
What information do I need to provide in order to help get some support for a new card?
+
You can find a lot of cards on [http://bttv-gallery.de] - very useful resource about cards identification.
  
lspci -vvxxx would be a start; from this information we'll be able to see whether the bttv driver can be taught to autodetect the card.  
+
Another useful place to look is windows drivers. They often contains a lot of information about cards hardware.
  
Then, to make a proper description dataset for the card, you'll need to figure out where each of your camera plugs connect (as in: which pin on which chip).
+
--------------------
 +
 
 +
After that you should download latest v4l cvs and search for that or similar card. Probably something like your
 +
card is already supported but has another name. Otherwise, you can look on similar entries and fill entry for new card. For bttv chip you should correct bttv-cards.c and bttv.h, for cx88 - cx88-cards.c and cx88.h, for saa - saa7134-cards.c and saa7134.h
 +
 
 +
--------------------
 +
 
 +
Card works - that's cool. You are ready to send patch to video4linux mailing list.

Revision as of 20:20, 27 June 2005

First you should find, how your card identify yourself on pci (just lspci and lspci -vn). This give you type of main decoder chip and

Next, you should try to identify tuner chips that your card uses. There can be tuner chip, demodulator or both hidden in metallic box connected directly to antenna input. Often tuner type is printed under sticker.

You can find a lot of cards on [1] - very useful resource about cards identification.

Another useful place to look is windows drivers. They often contains a lot of information about cards hardware.


After that you should download latest v4l cvs and search for that or similar card. Probably something like your card is already supported but has another name. Otherwise, you can look on similar entries and fill entry for new card. For bttv chip you should correct bttv-cards.c and bttv.h, for cx88 - cx88-cards.c and cx88.h, for saa - saa7134-cards.c and saa7134.h


Card works - that's cool. You are ready to send patch to video4linux mailing list.