Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: cx88 dvb modification



> The cx88 however, sets these to "cx88[0]" - which is unfortunately not
> useful for the above purpose - and theres no other way of doing it.

We should add one then.  For analog TV there is the tuner_type field
which is passed to tuner.o using some ->command() call.  We can (and
IMHO should) do that for digital tv cards as well, just matching the
name of the card is a bad idea.

The cx88 driver can easily figure more details on the card if needed.
For analog tv thats actually needed as for example the hauppauge wintv
cards may have have different tuners.  cx88 can figure that by checking
the eeprom with the config info, tuner.o can't do that ...

>  static int dvb_register(struct cx8802_dev *dev)

> +        strlcpy(dev->core->i2c_adap.name,cx88_boards[dev->core->board].name,sizeof(dev->core->i2c_adap.name));

No way.  That simply isn't the right place to mess with the name
of the i2c device.  And as mentioned above IMHO messing with the
name for configuration is a bad idea in the first place.

> +	result = dvb_register_adapter(&dev->core->dvb_adapter, cx88_boards[dev->core->board].name,

Same for this one.

  Gerd

-- 
return -ENOSIG;




Home | Main Index | Thread Index