From 41c96300f13fc1b3b709e0162d3dea3c6c7cf968 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 5 Jun 2004 14:37:26 +0200 Subject: [PATCH] No longer setting lnb voltage if the frontend is not DVB-S --- CONTRIBUTORS | 1 + HISTORY | 2 ++ dvbdevice.c | 5 +++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 49bff58b..0c3b3b11 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1015,3 +1015,4 @@ Wayne Keer Marco Schlüßler for fixing handling colors in cDvbSpuPalette::yuv2rgb() + for fixing setting lnb voltage if the frontend is not DVB-S diff --git a/HISTORY b/HISTORY index c3109669..7b66dc58 100644 --- a/HISTORY +++ b/HISTORY @@ -2881,3 +2881,5 @@ Video Disk Recorder Revision History texts (suggested by Sascha Volkenandt). - The cBitmap::SetXpm() function now ignores unused "none" color entries, which some broken graphics tools write into XPM files (suggested by Sascha Volkenandt). +- No longer setting lnb voltage if the frontend is not DVB-S (thanks to Marco + Schlüßler). diff --git a/dvbdevice.c b/dvbdevice.c index cb143a6d..5f50cde1 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 1.86 2004/05/23 10:11:42 kls Exp $ + * $Id: dvbdevice.c 1.87 2004/06/05 14:35:36 kls Exp $ */ #include "dvbdevice.h" @@ -101,7 +101,8 @@ cDvbTuner::cDvbTuner(int Fd_Frontend, int CardIndex, fe_type_t FrontendType, cCi useCa = false; tunerStatus = tsIdle; startTime = time(NULL); - CHECK(ioctl(fd_frontend, FE_SET_VOLTAGE, SEC_VOLTAGE_13)); // must explicitly turn on LNB power + if (frontendType == FE_QPSK) + CHECK(ioctl(fd_frontend, FE_SET_VOLTAGE, SEC_VOLTAGE_13)); // must explicitly turn on LNB power SetDescription("tuner on device %d", cardIndex + 1); Start(); }