From c36b51a5b0def365f99a1ecfb583da1a85199a17 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 15 Jul 2000 13:39:47 +0200 Subject: Fixed frequency offset to allow Hotbird channels --- CONTRIBUTORS | 2 ++ HISTORY | 2 ++ dvbapi.c | 6 +++--- 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 for adding LIRC support +Plamen Ganev + 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; -- cgit v1.2.3