On Tuesday 20 July 2004 20:52, Kenneth Aafløy wrote: [snip] > Actually with the current CVS code, we'll need access to the command i2c > function before the i2c bus is registered or when the frontends register on > the i2c adapter, and as far as I can see it the i2c adapter registered as > soon as the bttv module is loaded, and then it's too late.
Hmm, could just move the dvb_register_frontend to the i2c command and call the i2c client later, when the dvb adapter has been setup... > Sounds to me like a driver management layer is needed for this purpose. > I've attached an early try to make this work with the current CVS on my > budget-ci + stv0299. It's by no means perfect, but is easily integrated > into current CVS. This should rid us of this problem, and also provide easy > expansion to other bus types. It will block the frontends from registering > with an i2c_adapter that a dvb driver does not know about, but who cares, > right? ......and just forget this. Why the heck didn't I see that before now, damn. Kenneth