This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] stv090x: Fix losing lock in dual DVB-S2 mode
Author:  Oliver Endriss <[email protected]>
Date:    Mon Jan 10 06:36:22 2011 -0300

Do not clear registers ACLC/BCLC in DVB-S2 mode for Cut <= 20.
Otherwise, the demod could lose the lock periodically.
Verified with cineS2 and Duoflex.

Signed-off-by: Oliver Endriss <[email protected]>
Signed-off-by: Manu Abraham <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb/frontends/stv090x.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=a4951f1182939a816c2e5981f59f91b60c3421d7

diff --git a/drivers/media/dvb/frontends/stv090x.c 
b/drivers/media/dvb/frontends/stv090x.c
index eccad06..e3442a1 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -2894,10 +2894,12 @@ static int stv090x_optimize_track(struct stv090x_state 
*state)
                STV090x_SETFIELD_Px(reg, DVBS2_ENABLE_FIELD, 1);
                if (STV090x_WRITE_DEMOD(state, DMDCFGMD, reg) < 0)
                        goto err;
-               if (STV090x_WRITE_DEMOD(state, ACLC, 0) < 0)
-                       goto err;
-               if (STV090x_WRITE_DEMOD(state, BCLC, 0) < 0)
-                       goto err;
+               if (state->internal->dev_ver >= 0x30) {
+                       if (STV090x_WRITE_DEMOD(state, ACLC, 0) < 0)
+                               goto err;
+                       if (STV090x_WRITE_DEMOD(state, BCLC, 0) < 0)
+                               goto err;
+               }
                if (state->frame_len == STV090x_LONG_FRAME) {
                        reg = STV090x_READ_DEMOD(state, DMDMODCOD);
                        modcod = STV090x_GETFIELD_Px(reg, DEMOD_MODCOD_FIELD);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to