Hi,

after having a look at the documentation it seems to me that the driver
is losing 2 bits of div. I do not know, whether they ever become nonzero
and I did not test this, because I do not have any cable tv.

Besides that, I think the comment above of tuner_set_tv_freq() is misleading.

Best Regards,
Andreas


Index: ves1820.c
===================================================================
RCS file: /cvs/linuxtv/DVB/driver/frontends/Attic/ves1820.c,v
retrieving revision 1.1.2.15
diff -u -r1.1.2.15 ves1820.c
--- ves1820.c   7 Oct 2002 12:51:36 -0000       1.1.2.15
+++ ves1820.c   8 Oct 2002 09:27:33 -0000
@@ -145,7 +145,7 @@
 
 /**
  *   set up the downconverter frequency divisor for a
- *   reference clock comparision frequency of 125 kHz.
+ *   reference clock comparision frequency of 62.5 kHz.
  */
 static
 int tuner_set_tv_freq (struct dvb_frontend *frontend, u32 freq, u8 pwr)
@@ -158,9 +158,11 @@
         u8 buf [4] = { (div >> 8) & 0x7f, div & 0xff, byte3[tuner_type],
                        byte4[tuner_type] | (pwr << 6) };
 
-       if (tuner_type == 1)
+       if (tuner_type == 1) {
+               buf[2] = byte3[tuner_type] | ((div >> 10) & 0x60);
                buf[3] = (freq < 174000000 ? 0x88 :
                          freq < 470000000 ? 0x84 : 0x81) | (pwr << 6);
+       }
 
         return tuner_write (frontend->i2c, addr[tuner_type], buf);
 }



-- 
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.

Reply via email to