Re: bttv-driver: help required with new card

Gerd Knorr (kraxel@bytesex.org)
21 Aug 2002 08:39:45 GMT


> I have a framegrabber to work with linux (2.4.18). It's a BT878
> device and I have a lot of questions :(
>
> a) It does not use the muxsel-bits in BT848_IFORM but some bits in
> BT848_GPIO_DATA to select video-input---so seems to be a quite
> unusual device.
>
> Should I make switch(btv->type) statments in bt848_muxsel?

No. Pick the latest driver and use the muxsel_hook.

> b) several registers have to be initialised to other values then
> usual, to make the card work.
>
> At the moment I'm doing this in bt848_muxsel, but I would like to
> move to a place where it is not executed every time I switch input
> Is init_bt848 the right place?

No. Have you noticed the bttv-cards.c file? There is plenty of
card-specific initialization code. bttv_init_card2() likely is the
proper place.

> c) It does not identify with PCI_SUBSYSTEM_ID/PCI_SUBSYSTEM_VENDOR_ID
> (gives 0xffff). Any other way to autodetect it?

Sorry, no. Use the card=foo insmod option and flame the vendor of the
card.

> d) Who is the bttv-maintainer?!

/me.

How about reading documentation? Documentation/video4linux/bttv/ for
example?

Gerd

-- 
You can't please everybody.  And usually if you _try_ to please
everybody, the end result is one big mess.
				-- Linus Torvalds, 2002-04-20
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/