dvb: mt352 frontend driver update
PATCH 1/1 dvb: mt352 frontend driver update
Hi,
This patch updates the mt352 driver to make it work with the Pinnacle 300i card. Some values are calculated at runtime now instead of having hard-coded defaults because the defaults don't fit for the Pinnacle, and some more small tweaks + fixes.
This was also discussed + accepted on the dvb list, going to submit directly because the saa7134 driver update depends on this.
Gerd
Signed-off-by Gerd Knorr <[email protected]>
--- drivers/media/dvb/frontends/mt352.c | 197 ++++++++++++++++++---------- drivers/media/dvb/frontends/mt352.h | 15 +- 2 files changed, 144 insertions(+), 68 deletions(-)
drivers/media/dvb/frontends/mt352.h +14 -1
@@ -40,6 +40,13 @@ struct mt352_config/* the demodulator's i2c address */ u8 demod_address; +/* frequencies in kHz */ +int adc_clock;// default: 20480 +int if2;// default: 36166 + +/* set if no pll is connected to the secondary i2c bus */ +int no_tuner; +/* Initialise the demodulator and PLL. Cannot be NULL */ int (*demod_init)(struct dvb_frontend * fe);
@@ -54,6 +61,12 @@ extern struct dvb_frontend* mt352_attach struct i2c_adapter* i2c);extern int mt352_write (struct dvb_frontend * fe,u8 * ibuf,int ilen); -extern u8 mt352_read (struct dvb_frontend *fe,u8 reg); +extern int mt352_read (struct dvb_frontend *fe,u8 reg);#endif // MT352_H + +/* +* Local variables: +* c-basic-offset: 8 +* End: +*/
drivers/media/dvb/frontends/mt352.c +130 -67
308 lines not on this page · raw message
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)