[mythtv] DVB alpha-0.4
Steve Brown
sbrown at cortland.com
Wed Sep 3 10:47:32 EDT 2003
Kenneth Aafloy wrote:
>Hi again!
>
>http://home.no/mythbox/dvb-alpha-0.4.tar.bz2
>
>
>
The assumption of a dual, tone-switched LOF ku lnb is hardcoded. Over
here, the ku lnb LOF's are 10750 and the c lnb LOF's are 5150.
Would you consider a change that interprets dvb-s freq's < 3000 Mhz as
the L-Band if and skip the conversion?
I realize this isn't very general, but is used in several of the dvb
driver apps and elsewhere. And, it would allow the software to be used
here without change. A general implementation might be a bit premature.
Steve
I skipped the indention so the changes were clearer.
--- dvbchannel.cpp.orig 2003-09-03 08:54:11.000000000 -0400
+++ dvbchannel.cpp 2003-09-03 09:06:22.000000000 -0400
@@ -210,7 +210,7 @@
}
unsigned int frequency;
- if (info.type == FE_QPSK)
+ if (info.type == FE_QPSK && t.params.frequency > 3000000)
if (t.params.frequency > LOF_SWITCH)
frequency = t.params.frequency - LOF_HI;
else
@@ -773,6 +773,7 @@
bool DVBChannel::TuneQPSK(dvb_tuning_t& tuning, bool reset, bool&
havetuned)
{
int frequency = tuning.params.frequency;
+ if (tuning.params.frequency > 3000000) {
if (tuning.params.frequency >= LOF_SWITCH)
{
tuning.params.frequency = tuning.params.frequency - LOF_HI;
@@ -795,6 +796,7 @@
prev_tuning.tone = tuning.tone;
havetuned = true;
}
+ }
if (prev_tuning.voltage != tuning.voltage || reset)
{
More information about the mythtv-dev
mailing list