Mailing List archive

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

[vdr] Patch to vdr for c-band reception



Hello,

There is a small one-line patch to vdr that will allow it to work with
c-band reception.

In c-band the frequency is less than the LOF.  You use the calculation:
L = LOF - C-frequency

This is the opposite of Ku-band where
L = Ku-frequency - LOF

Taking the first equation we see that
L = -(C-frequency - LOF)

So if we do an abs we will always get the correct result - both for
c-band and ku-band.

This works with the following setup:
LnbFrequHi = 0
LnbFrequLo = 5150
LnbSLOF = 99999

Here is the patch:

--- dvbdevice.c.orig    Mon Mar 24 17:08:15 2003
+++ dvbdevice.c Mon Mar 24 16:59:48 2003
@@ -195,6 +195,7 @@
             CHECK(ioctl(fd_frontend, FE_SET_VOLTAGE, volt));
             CHECK(ioctl(fd_frontend, FE_SET_TONE, tone));
             }
+         frequency = abs(frequency); // Allow for c-band
          Frontend.frequency = frequency * 1000UL;
          Frontend.inversion = fe_spectral_inversion_t(channel.Inversion());
          Frontend.u.qpsk.symbol_rate = channel.Srate() * 1000UL;




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



Home | Main Index | Thread Index