summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-02-24 11:55:10 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2001-02-24 11:55:10 +0100
commit1f6888c8077689d530741cac5c7aeb4874ff1c04 (patch)
tree9b63e3826199df2a0a578a53c60b0c85162d978a /dvbapi.c
parentad27adfef3ccf107a01e501c1df1f266d9c237d9 (diff)
downloadvdr-1f6888c8077689d530741cac5c7aeb4874ff1c04.tar.gz
vdr-1f6888c8077689d530741cac5c7aeb4874ff1c04.tar.bz2
Support for DVB-C
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/dvbapi.c b/dvbapi.c
index c1fb6efc..470835ac 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.58 2001/02/11 11:04:41 kls Exp $
+ * $Id: dvbapi.c 1.59 2001/02/20 17:40:57 kls Exp $
*/
#include "dvbapi.h"
@@ -2128,11 +2128,17 @@ bool cDvbApi::SetChannel(int ChannelNumber, int FrequencyMHz, char Polarization,
struct frontend front;
ioctl(videoDev, VIDIOCGFRONTEND, &front);
unsigned int freq = FrequencyMHz;
- front.ttk = (freq < 11700UL) ? 0 : 1;
- if (freq < 11700UL)
- freq -= Setup.LnbFrequLo;
- else
- freq -= Setup.LnbFrequHi;
+ if (front.type == FRONT_DVBS) {
+ front.ttk = (freq < 11700UL) ? 0 : 1;
+ if (freq < 11700UL) {
+ freq -= Setup.LnbFrequLo;
+ front.ttk = 0;
+ }
+ else {
+ freq -= Setup.LnbFrequHi;
+ front.ttk = 1;
+ }
+ }
front.channel_flags = Ca ? DVB_CHANNEL_CA : DVB_CHANNEL_FTA;
front.pnr = Pnr;
front.freq = freq * 1000000UL;
@@ -2144,6 +2150,7 @@ bool cDvbApi::SetChannel(int ChannelNumber, int FrequencyMHz, char Polarization,
front.tt_pid = Tpid;
front.fec = 8;
front.AFC = 1;
+ front.qam = 2;
ioctl(videoDev, VIDIOCSFRONTEND, &front);
if (front.sync & 0x1F == 0x1F) {
if (this == PrimaryDvbApi && siProcessor)