Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: [PATCHES] Frontend kernel i2c conversion.
On Tue, Jul 20, 2004 at 02:37:04PM +0200, Johannes Stezenbach wrote:
> Hi Gerd,
>
> I hope you don't mind if I address you directly in this
> thread, I don't know if you're still reading linux-dvb.
I'm still subscribed, but read it _very_ briefly only at the moment ...
> What's your opinion on this matter? Would you accept a patch
> for bttv-i2c to expose the hooks required by DVB? Or do can
> you propose a different solution?
In 2.6 the hooks are there already. It's done via sysfs.
You'll have to register as sub-driver via bttv_sub_register().
bttv creates virtual devices and if a matching driver exists
it will be attached.
The sub-drivers get passed a pointer to struct bttv_core which should
have everything you need. There are a few helper functions for gpio
access which accept bttv_core to identify the correct card. There is a
pointer to the pci_dev, so you can look for the matching .1 pci function
for ts stream xfer. And also a pointer to i2c_adapter, so you can do
any i2c transfers you want using the usual functions (i2c_master_* in
i2c-core.c).
I think right now only ir-kbd-gpio.c uses that interface, so you can
have a look there for sample code.
Gerd
--
return -ENOSIG;
Home |
Main Index |
Thread Index