summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-07-15 13:39:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-07-15 13:39:47 +0200
commitc36b51a5b0def365f99a1ecfb583da1a85199a17 (patch)
tree56fa9137c8c9e304d51d21e0a9b8ebe2efe989d0
parent20019e7ce51b9e14ce28f96b263b76e6becd4184 (diff)
downloadvdr-c36b51a5b0def365f99a1ecfb583da1a85199a17.tar.gz
vdr-c36b51a5b0def365f99a1ecfb583da1a85199a17.tar.bz2
Fixed frequency offset to allow Hotbird channels
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY2
-rw-r--r--dvbapi.c6
3 files changed, 7 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index fbf6e867..5e48bc1f 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3,3 +3,5 @@ Thanks go to the following people for patches and contributions:
Carsten Koch <Carsten.Koch@icem.de>
for adding LIRC support
+Plamen Ganev <pganev@com-it.net>
+ for fixing the frequency offset for Hotbird channels
diff --git a/HISTORY b/HISTORY
index 40150c68..c67c13b8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -63,4 +63,6 @@ Video Disk Recorder Revision History
and LIRC. See the INSTALL file for information on how to enable either of
these modes. The default mode is now KBD, not RCU as before (to make it
work immediately even if there is no actual remote control).
+- Fixed small bug in dvbapi.c that was causing some channels (many on hotbird)
+ not to be correctly tuned (thanks to Plamen Ganev!).
diff --git a/dvbapi.c b/dvbapi.c
index 58b2d74f..1f18b8be 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.11 2000/06/24 14:03:19 kls Exp $
+ * $Id: dvbapi.c 1.12 2000/07/15 13:33:04 kls Exp $
*/
#include "dvbapi.h"
@@ -1327,8 +1327,8 @@ bool cDvbApi::SetChannel(int FrequencyMHz, char Polarization, int Diseqc, int Sr
struct frontend front;
ioctl(videoDev, VIDIOCGFRONTEND, &front);
unsigned int freq = FrequencyMHz;
- front.ttk = (freq < 11800UL) ? 0 : 1;
- if (freq < 11800UL)
+ front.ttk = (freq < 11700UL) ? 0 : 1;
+ if (freq < 11700UL)
freq -= 9750UL;
else
freq -= 10600UL;