Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Frontend patch



This is a fix for alps_tdlb7.c to drive the tuner PLL power
according to the specification from ALPS. I need it to have
the tuner work reliably, for at least one other person
(or rather, card :-) it doesn't seem to harm.
I have only tried it with DVB, but it should be applicable
to dvb-kernel too.

I believe this should be applied to the cvs code.

/ragge

----------
Index: alps_tdlb7.c
===================================================================
RCS file: /cvs/linuxtv/DVB/driver/frontends/alps_tdlb7.c,v
retrieving revision 1.9
diff -u -d -b -w -p -u -r1.9 alps_tdlb7.c
--- alps_tdlb7.c        15 Jan 2003 14:04:36 -0000      1.9
+++ alps_tdlb7.c        15 Mar 2003 16:10:37 -0000
@@ -342,11 +342,16 @@ int tdlb7_ioctl (struct dvb_frontend *fe
        case FE_SET_FRONTEND:
        {
               struct dvb_frontend_parameters *p = arg;
+               int pwr;

               // system controller stop
               sp8870_writereg(i2c,0x0F00,0x0000);

-               sp5659_set_tv_freq (i2c, p->frequency, 0);
+               if(p->frequency <= 782000000)
+                 pwr = 1; // for ch E21..E59
+               else
+                 pwr = 2; // for ch E60..E69
+               sp5659_set_tv_freq (i2c, p->frequency, pwr);

               // sample rate correction bit [23..17]
               sp8870_writereg(i2c,0x0319,0x000A);
----------




--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index