[linux-dvb] FIX: No recovery after lost lock

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

 



Marian,

On Wed, Sep 07, 2005 Oliver Endriss wrote:
> Marian Durkovic wrote:
> > I have no idea why the transition from 1 to 0 helps, maybe changing of
> > inversion resets some other internal parameters of STV 299B and the problem
> > is in fact somewhere else (bad initialization settings or so). 
> 
> Ok, please test the attached patch.
> It adds a transition of the inversion bit to the frontend driver.

Did you test if this patch fixes the problem for you?

Johannes


> Index: stv0299.c
> ===================================================================
> RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/frontends/stv0299.c,v
> retrieving revision 1.70
> diff -p -u -r1.70 stv0299.c
> --- stv0299.c	4 Sep 2005 15:23:44 -0000	1.70
> +++ stv0299.c	7 Sep 2005 02:30:48 -0000
> @@ -580,6 +580,8 @@ static int stv0299_set_frontend(struct d
>  		return -EINVAL;
>  	}
>  	if (state->config->invert) invval = (~invval) & 1;
> +	/* workaround: flip inversion bit */
> +	stv0299_writeregI(state, 0x0c, (stv0299_readreg(state, 0x0c) & 0xfe) | (invval ^ 1));
>  	stv0299_writeregI(state, 0x0c, (stv0299_readreg(state, 0x0c) & 0xfe) | invval);
>  
>  	if (state->config->enhanced_tuning) {

> _______________________________________________
> 
> linux-dvb@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux