Hello Bill, I've copied this message to the linux-dvb list which would be a more appropriate place for this discussion. I believe these values are discovered by observing the i2c accesses of the windows drivers whilst running the cards on a Windows machine. I also know of people that have used logic probes to find the values. Of course I could be mis-understanding everything here.... Soyeb On Tue, 2005-11-15 at 03:32 +1100, Bill Giannikos wrote: > Hello All, > > I've been working on trying to add support for the AverMedia A777 and > A16A cards (I believe these two are exactly the same, except the A777 is > packaged with a remote). > > So far I have added basic support for the card in saa7134-card.c, got > the card registering the MT352 and adapted the tuner code (the tuner is > a Phillips TD1316A) for the MT352. > > What remains, and what I haven't been able to find any documentation > about, is the initialisation of the MT352. The code below shows a > example on how to initialise the MT352 on the Avermedia A771 card, > however I do not know how these values are derived (they are slightly > different for other MT352 cards). Can anybody with MT352 experience > provide me any pointers? > > > static int advbt777_td1316a_demod_init(struct dvb_frontend* fe) > { > static u8 mt352_clock_config [] = { 0x89, 0x38, 0x2d }; > static u8 mt352_reset [] = { 0x50, 0x80 }; > static u8 mt352_adc_ctl_1_cfg [] = { 0x8E, 0x40 }; > static u8 mt352_agc_cfg [] = { 0x67, 0x10, 0x23, 0x00, 0xFF, 0xFF, > 0x00, 0xFF, 0x00, 0x40, 0x40 }; > static u8 mt352_av771_extra[] = { 0xB5, 0x7A }; > static u8 mt352_capt_range_cfg[] = { 0x75, 0x32 }; > > mt352_write(fe, mt352_clock_config, sizeof(mt352_clock_config)); > udelay(2000); > mt352_write(fe, mt352_reset, sizeof(mt352_reset)); > mt352_write(fe, mt352_adc_ctl_1_cfg, sizeof(mt352_adc_ctl_1_cfg)); > > mt352_write(fe, mt352_agc_cfg,sizeof(mt352_agc_cfg)); > udelay(2000); > mt352_write(fe, mt352_av771_extra,sizeof(mt352_av771_extra)); > mt352_write(fe, mt352_capt_range_cfg, sizeof(mt352_capt_range_cfg)); > > return 0; > } > > Regards, > Bill Giannikos > > -- > video4linux-list mailing list > Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/video4linux-list