]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: add 'C-Band (bandstack)' LNB type, fixes #3800
authorJaroslav Kysela <perex@perex.cz>
Fri, 13 May 2016 07:50:44 +0000 (09:50 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 13 May 2016 07:57:47 +0000 (09:57 +0200)
src/input/mpegts/linuxdvb/linuxdvb_lnb.c

index 3ff85bfe58c70c828d11daa762ceb8dafb8de671..bb6356247d3a11bade876c8e50437f0e2137e6b6 100644 (file)
@@ -83,6 +83,14 @@ linuxdvb_lnb_standard_freq
   return (uint32_t)abs(f);
 }
 
+static int
+linuxdvb_lnb_bandstack_match
+  ( linuxdvb_lnb_t *l, dvb_mux_t *lm1, dvb_mux_t *lm2 )
+{
+  /* everything is in one cable */
+  return 1;
+}
+
 static int
 linuxdvb_lnb_standard_match
   ( linuxdvb_lnb_t *l, dvb_mux_t *lm1, dvb_mux_t *lm2 )
@@ -234,6 +242,20 @@ struct linuxdvb_lnb_conf linuxdvb_lnb_all[] = {
     .lnb_high   = 0,
     .lnb_switch = 0,
   },
+  {
+    { {
+      .ld_type    = "C-Band (bandstack)",
+      .ld_tune    = linuxdvb_lnb_standard_tune,
+      },
+      .lnb_freq   = linuxdvb_lnb_bandstack_freq,
+      .lnb_match  = linuxdvb_lnb_bandstack_match,
+      .lnb_band   = linuxdvb_lnb_bandstack_band,
+      .lnb_pol    = linuxdvb_lnb_bandstack_pol,
+    },
+    .lnb_low    =  5150000,
+    .lnb_high   =  5750000,
+    .lnb_switch =  0,
+  },
   {
     { {
       .ld_type    = "Ku 10750",
@@ -324,7 +346,7 @@ struct linuxdvb_lnb_conf linuxdvb_lnb_all[] = {
       .ld_tune    = linuxdvb_lnb_standard_tune,
       },
       .lnb_freq   = linuxdvb_lnb_bandstack_freq,
-      .lnb_match  = linuxdvb_lnb_standard_match,
+      .lnb_match  = linuxdvb_lnb_bandstack_match,
       .lnb_band   = linuxdvb_lnb_bandstack_band,
       .lnb_pol    = linuxdvb_lnb_bandstack_pol,
     },