Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39342dbb authored by Lutz Sammer's avatar Lutz Sammer Committed by Mauro Carvalho Chehab
Browse files

[media] stb0899: Fix slow and not locking DVB-S transponder(s)



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: default avatarLutz <Sammer&lt;johns98@gmx.net>
Reviewed-by: default avatarManu <Abraham&lt;manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 06bd801c
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -358,6 +358,9 @@ static enum stb0899_status stb0899_check_data(struct stb0899_state *state)
	else
	else
		dataTime = 500;
		dataTime = 500;


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

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