All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stb0899: Fix slow and not locking DVB-S transponder(s)
@ 2011-09-29 21:16 Lutz Sammer
  2011-09-29 21:22 ` [PATCH v2] " Lutz Sammer
  0 siblings, 1 reply; 10+ messages in thread
From: Lutz Sammer @ 2011-09-29 21:16 UTC (permalink / raw)
  To: linux-media

Another version of
http://patchwork.linuxtv.org/patch/6307
http://patchwork.linuxtv.org/patch/6510
which was superseded or rejected, but it don't know why.

In stb0899_status stb0899_check_data the first read of STB0899_VSTATUS
could read old (from previous search) status bits and the search fails
on a good frequency.

With the patch more transponder could be locked and locks about 2* faster.

Signed-off-by: Lutz Sammer <johns98@gmx.net>
---
 drivers/media/dvb/frontends/stb0899_algo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/fron  tends/stb0899_algo.c
index d70eee0..8eca419 100644
--- a/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/drivers/media/dvb/frontends/stb0899_algo.c
@@ -358,6 +358,7 @@ static enum stb0899_status stb0899_check_data(struct stb0899  _state *state)
        else
                dataTime = 500;
 
+       stb0899_read_reg(state, STB0899_VSTATUS); /* clear old status bits */
        stb0899_write_reg(state, STB0899_DSTATUS2, 0x00); /* force search loop *  /
        while (1) {
                /* WARNING! VIT LOCKED has to be tested before VIT_END_LOOOP   *  /
-- 
1.7.6.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* Re: [PATCH v2] stb0899: Fix slow and not locking DVB-S transponder(s)
@ 2011-09-30 15:01 Tuxoholic
  0 siblings, 0 replies; 10+ messages in thread
From: Tuxoholic @ 2011-09-30 15:01 UTC (permalink / raw)
  To: linux-media, abraham.manu, johns98

On Thu, 29 Sep 2011 23:22, Lutz Sammer wrote:

> With the patch more transponder could be locked and locks about 2* faster.

I second that, tested against vanilla kernel 3.0.1 with and w.o patch 
and the Twinhan 1041.

Manu, you know there's sth wrong with the algo, so please review, 
comment and ack - same goes for the Mantis Remote patch.

Thanks!

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-10-07 20:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29 21:16 [PATCH] stb0899: Fix slow and not locking DVB-S transponder(s) Lutz Sammer
2011-09-29 21:22 ` [PATCH v2] " Lutz Sammer
2011-09-30 17:07   ` Mauro Carvalho Chehab
2011-09-30 18:41     ` Lutz Sammer
2011-09-30 18:58       ` Mauro Carvalho Chehab
2011-10-06 18:56         ` Manu Abraham
2011-10-07 17:01           ` Lutz Sammer
2011-10-07 18:20             ` Manu Abraham
2011-10-07 20:11               ` [PATCH v3] " Lutz Sammer
2011-09-30 15:01 [PATCH v2] " Tuxoholic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.