diff options
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-dvb.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-dvb.c b/linux/drivers/media/video/saa7134/saa7134-dvb.c index b2cbaee4c..b6cb37003 100644 --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-dvb.c,v 1.5 2004/12/09 12:51:35 kraxel Exp $ + * $Id: saa7134-dvb.c,v 1.6 2004/12/10 12:33:39 kraxel Exp $ * * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] * @@ -41,13 +41,13 @@ MODULE_LICENSE("GPL"); static int mt352_init(struct dvb_frontend* fe) { - static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; - static u8 reset [] = { RESET, 0x80 }; + static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; // check + static u8 reset [] = { RESET, 0x80 }; // ok + static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; // ok #if 0 - static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; - static u8 agc_cfg [] = { AGC_TARGET, 0x24, 0x20 }; - static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x33 }; - static u8 capt_range_cfg[] = { CAPT_RANGE, 0x32 }; + static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0x20 }; // check + static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x33 }; // ??? + static u8 capt_range_cfg[] = { CAPT_RANGE, 0x32 }; // ??? #endif struct saa7134_dev *dev= fe->dvb->priv; @@ -56,9 +56,9 @@ static int mt352_init(struct dvb_frontend* fe) mt352_write(fe, clock_config, sizeof(clock_config)); udelay(200); mt352_write(fe, reset, sizeof(reset)); -#if 0 mt352_write(fe, adc_ctl_1_cfg, sizeof(adc_ctl_1_cfg)); +#if 0 mt352_write(fe, agc_cfg, sizeof(agc_cfg)); mt352_write(fe, gpp_ctl_cfg, sizeof(gpp_ctl_cfg)); mt352_write(fe, capt_range_cfg, sizeof(capt_range_cfg)); @@ -80,7 +80,6 @@ static int mt352_pll_set(struct dvb_frontend* fe, static struct mt352_config pinnacle_300i = { .demod_address = 0x3c >> 1, -// .demod_address = 0x1e >> 1, .demod_init = mt352_init, .pll_set = mt352_pll_set, }; @@ -101,14 +100,6 @@ static int dvb_init(struct saa7134_dev *dev) switch (dev->board) { case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL: printk("%s: pinnacle 300i dvb setup\n",dev->name); - { - u8 buf[16]; - dev->i2c_client.addr = 0x3c >> 1; - memset(buf,0,sizeof(buf)); - buf[0] = CHIP_ID; - i2c_master_send(&dev->i2c_client,buf,1); - i2c_master_recv(&dev->i2c_client,buf,1); - } dev->dvb.frontend = mt352_attach(&pinnacle_300i, &dev->i2c_adap); break; |