Hi,
On Thu, 6 Apr 2000, J�rg Heckenbach wrote:
> Jose Ignacio Gijon Soriano wrote:
> > I've stop coding and begin to think in writing a i2c-usb driver
> > for the nt1003, to be able to use the drivers that are actually used by
> > the bttv and the rest of v4l stuff. Doing so, there is no need of rewrite
> > the tuner driver and also the saa7111 driver can be used with minimal
> > modifications.
>
> Hi!
>
> I think this is a good idea. I've looked at all the drivers for I2C, SAA7111 etc
> and I hope I understand a minimum of that what they are doing.
> The driver and device structure maybe something like this:
>
> <xawtv eg.> +-> <saa7111_driver> -+> <i2c-usb_driver> +-> <usb-nt1003_driver> -->
>(nt1003_device) +-> (saa7111_device)
> +-> <tuner_driver> ---+ +
> +-> (tuner_device)
> +-> <videodev_driver>---------------------+
>
Yes, this is the idea I have. I've a minimal skeleton of the i2c-usb
driver, but I don't have clear the real structure.
As far as I've seen, the i2c driver have to be splited in two parts,
the algorithm part and the adapter (hw specific) part. I don't know how
different is this chip (nt1003) to others usb chips with an i2c bus inside
so I'm not very sure about if the algo is going to be generic enought to
call it i2c-algo-usb. If both parts are hw specific, we can do every thing
just with the algo.
Apart of the design, the thing looks simple, all we have to do is map
the functions i2c_master_send (you wintv_i2c_write, my nt1003_i2c_write)
and i2c_master_recv (wintv_i2c_read).
> While looking at tuner.c and saa7111.c I found that they use different include files
>i2c.h and i2c-old.h.
> I thing this will make problems with the i2c-usb driver. So the saa7111 has to be
>updated.
>
Yes, that's the "minimal modification" I said :)
>
> Maybe the hardware we are coding for isn't as different as I thought the first time.
>The Hauppauge WinTv
> has this hardware structure.
>
> <usb>---(nt1003-1)-+-(saa7111a)-+-(fm1216)--<antenna input
> | +-----------<direct input
> |
> <line in>--------(4052)---------+-----------<direct audio in
> +-----------<audio from tuner
>
The miro PCTV is exactilly the same you have draw. I'm not sure now
about de audio part as I don't have the device here and have not yet
begin to work with that part.
>
> Are you interested in coding together?
>
SURE!!, I'll try to order the things I've done, add some comments to the
code and I'll send you everything
> Cheers
> Joerg Heckenbach
> [EMAIL PROTECTED]
>
Best regards.
Nacho.
___________________________________________________________________
=== ____ === Jose Ignacio Gij'on
=== / / / ___ ___ _/_ ===
=== /---- / / / / /___/ / === [EMAIL PROTECTED]
=== /____ /___/ / / /___ / === [EMAIL PROTECTED]
===== =====
===== Connecting Europe since 1982 ===== tel: +34.91.754 80 00
Goya Servicios Telematicos, S.A. fax: +34.91.754 80 08
C/ Tel'emaco 5 E-28027 Madrid, Espanna
___________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]