[linux-dvb] Fwd: Re: [PATCH] TT S2-3200: Increase timeout for stb0899_send_diseqc_msg.

Igor M. Liplianin liplianin at tut.by
Sat Nov 22 18:42:29 CET 2008


> Igor M. Liplianin wrote:
> > TT S2-3200: Increase timeout for stb0899_send_diseqc_msg.
> >
> > From: Igor M. Liplianin <liplianin at me.by>
> >
> > Increase timeout for stb0899_send_diseqc_msg. It fixes error for rotor:
> > FE_DISEQC_SEND_MASTER_CMD failed: Connection timed out.
> >
> > Signed-off-by: Igor M. Liplianin <liplianin at me.by>
> >
> >
> > ------------------------------------------------------------------------
> >
> > # HG changeset patch
> > # User Igor M. Liplianin <liplianin at me.by>
> > # Date 1226189735 -7200
> > # Node ID e14ee5f020b15afdf0e5b573d0f960c68a458d37
> > # Parent  1c4d63e589e0420d95d96bf81d3bfbb2cd39a9cf
> > TT S2-3200: Increase timeout for stb0899_send_diseqc_msg.
> >
> > From: Igor M. Liplianin <liplianin at me.by>
> >
> > Increase timeout for stb0899_send_diseqc_msg. It fixes error for rotor:
> > FE_DISEQC_SEND_MASTER_CMD failed: Connection timed out.
> >
> > Signed-off-by: Igor M. Liplianin <liplianin at me.by>
> >
> > diff -r 1c4d63e589e0 -r e14ee5f020b1
> > linux/drivers/media/dvb/frontends/stb0899_drv.c ---
> > a/linux/drivers/media/dvb/frontends/stb0899_drv.c	Sat Nov 08 23:33:34
> > 2008 +0200 +++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c	Sun Nov
> > 09 02:15:35 2008 +0200 @@ -705,7 +705,7 @@
> >  	stb0899_write_reg(state, STB0899_DISCNTRL1, reg);
> >  	for (i = 0; i < cmd->msg_len; i++) {
> >  		/* wait for FIFO empty	*/
> > -		if (stb0899_wait_diseqc_fifo_empty(state, 10) < 0)
> > +		if (stb0899_wait_diseqc_fifo_empty(state, 20) < 0)
> >  			return -ETIMEDOUT;
> >
> >  		stb0899_write_reg(state, STB0899_DISFIFO, cmd->msg[i]);
>
> Diseqc/Rotor did work with the 10ms timeout for most of us. Was it
> really failing ?
>
> Anyway if it is really needed, the timeout can be increased.
>
> Regards,
> Manu
I do not insist.

Best regards
-- 
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks




More information about the linux-dvb mailing list