[linux-dvb] Antother problem with mt352

Kenneth Aafløy lists at kenneth.aafloy.net
Sat Mar 19 02:36:34 CET 2005


On Saturday 19 March 2005 01:55, Kenneth Aafløy wrote:
> On Friday 18 March 2005 23:43, François-Xavier Payet wrote:
> > Thanks for the patch, but unfortunately, still the same problem (I'm sure the 
> > reception is good, working like a charm on windows)
> 
> What if you delete the read of STATUS_3?
> 
> remove this (~ line 
>                 state->s3 = mt352_read_register(state, STATUS_3);
> 
> change this
>                 if (-1 == state->s0 || -1 == state->s1 || -1 == state->s3)
> to
>                 if (-1 == state->s0 || -1 == state->s1)

Try enabling the commented line again (~ line 290):
        buf[3] = 0x50;  // old
//      buf[3] = 0xf4;  // pinnacle

Try adding this:

        buf[0] = AGC_TARGET;
        buf[1] = 0x20;
        mt352_write(fe, buf, 2);

before this (~ line 320):

        if (state->config->no_tuner) {
                /* start decoding */
                mt352_write(fe, fsm_go, 2);

Also this should give proper signal strength readback (~ line 420):

        u16 signal = (mt352_read_register (state, AGC_GAIN_3) << 2) |
                    ((mt352_read_register (state, AGC_GAIN_2) >> 6) & 3);

At least some ideas of stuff you could try :)

Kenneth




More information about the linux-dvb mailing list