Skip to content

Commit

Permalink
[media] stb0899: Fix slow and not locking DVB-S transponder(s)
Browse files Browse the repository at this point in the history
In stb0899_status stb0899_check_data the first read of STB0899_VSTATUS
could read old (from previous search) LOOP status bit 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>
Reviewed-by: Manu Abraham<manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Lutz Sammer authored and Mauro Carvalho Chehab committed Oct 11, 2011
1 parent 06bd801 commit 39342db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/dvb/frontends/stb0899_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ static enum stb0899_status stb0899_check_data(struct stb0899_state *state)
else
dataTime = 500;

/* clear previous failed END_LOOPVIT */
stb0899_read_reg(state, STB0899_VSTATUS);

stb0899_write_reg(state, STB0899_DSTATUS2, 0x00); /* force search loop */
while (1) {
/* WARNING! VIT LOCKED has to be tested before VIT_END_LOOOP */
Expand Down

0 comments on commit 39342db

Please sign in to comment.