1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed frequency offset to allow Hotbird channels

This commit is contained in:
Klaus Schmidinger 2000-07-15 13:39:47 +02:00
parent 20019e7ce5
commit c36b51a5b0
3 changed files with 7 additions and 3 deletions

View File

@ -3,3 +3,5 @@ Thanks go to the following people for patches and contributions:
Carsten Koch <Carsten.Koch@icem.de> Carsten Koch <Carsten.Koch@icem.de>
for adding LIRC support for adding LIRC support
Plamen Ganev <pganev@com-it.net>
for fixing the frequency offset for Hotbird channels

View File

@ -63,4 +63,6 @@ Video Disk Recorder Revision History
and LIRC. See the INSTALL file for information on how to enable either of 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 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). 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!).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "dvbapi.h"
@ -1327,8 +1327,8 @@ bool cDvbApi::SetChannel(int FrequencyMHz, char Polarization, int Diseqc, int Sr
struct frontend front; struct frontend front;
ioctl(videoDev, VIDIOCGFRONTEND, &front); ioctl(videoDev, VIDIOCGFRONTEND, &front);
unsigned int freq = FrequencyMHz; unsigned int freq = FrequencyMHz;
front.ttk = (freq < 11800UL) ? 0 : 1; front.ttk = (freq < 11700UL) ? 0 : 1;
if (freq < 11800UL) if (freq < 11700UL)
freq -= 9750UL; freq -= 9750UL;
else else
freq -= 10600UL; freq -= 10600UL;