]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: satconf - move rotor settings to the advanced class
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 Jan 2016 10:54:08 +0000 (11:54 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Jan 2016 10:54:08 +0000 (11:54 +0100)
src/input/mpegts/linuxdvb/linuxdvb_adapter.c
src/input/mpegts/linuxdvb/linuxdvb_satconf.c

index 464fe586f845170f96344584cb7b481273e1b52b..47f5f2523fbd4eaa0542588c2ce46e9b0b476c26 100644 (file)
@@ -386,6 +386,9 @@ linuxdvb_adapter_add ( const char *path )
       if ((delsys = linuxdvb2tvh_delsys(delsys)) == DVB_SYS_NONE)
         continue;
 
+      if (force_dvbs)
+        delsys = DVB_SYS_DVBS;
+
       /* Invalid */
       if ((type5 = dvb_delsys2type(delsys)) == DVB_TYPE_NONE)
         continue;
index b0ed1d6b133e25fc9f5d76930eb374606676a4dc..00b815a9e33b66d814ac5a4db424da8a61934712 100644 (file)
@@ -248,72 +248,6 @@ const idclass_t linuxdvb_satconf_class =
       .opts     = PO_ADVANCED,
       .def.i    = 1
     },
-    {
-      .type     = PT_BOOL,
-      .id       = "switch_rotor",
-      .name     = N_("Switch before rotor"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_switch_rotor),
-      .opts     = PO_ADVANCED,
-    },
-    {
-      .type     = PT_U32,
-      .id       = "max_rotor_move",
-      .name     = N_("Rotor initialization time (seconds)"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_max_rotor_move),
-      .opts     = PO_ADVANCED,
-      .def.u32  = 120
-    },
-    {
-      .type     = PT_U32,
-      .id       = "min_rotor_move",
-      .name     = N_("Minimum rotor time (seconds)"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_min_rotor_move),
-      .opts     = PO_ADVANCED,
-    },
-    {
-      .type     = PT_DBL,
-      .id       = "site_lat",
-      .name     = N_("Site latitude"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_site_lat),
-      .opts     = PO_ADVANCED,
-    },
-    {
-      .type     = PT_DBL,
-      .id       = "site_lon",
-      .name     = N_("Site longitude"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_site_lon),
-      .opts     = PO_ADVANCED,
-    },
-    {
-      .type     = PT_BOOL,
-      .id       = "site_lat_south",
-      .name     = N_("Southern hemisphere (latitude direction)"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_site_lat_south),
-      .opts     = PO_ADVANCED,
-      .def.i    = 0
-    },
-    {
-      .type     = PT_BOOL,
-      .id       = "site_lon_west",
-      .name     = N_("Western hemisphere (latitude direction)"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_site_lon_west),
-      .opts     = PO_ADVANCED,
-      .def.i    = 0
-    },
-    {
-      .type     = PT_INT,
-      .id       = "site_altitude",
-      .name     = N_("Altitude (meters)"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_site_altitude),
-      .opts     = PO_ADVANCED,
-      .def.i    = 0
-    },
-    {
-      .type     = PT_U32,
-      .id       = "motor_rate",
-      .name     = N_("Motor rate (milliseconds/deg)"),
-      .off      = offsetof(linuxdvb_satconf_t, ls_motor_rate),
-    },
     {}
   }
 };
@@ -569,6 +503,72 @@ const idclass_t linuxdvb_satconf_advanced_class =
       .get      = linuxdvb_satconf_class_orbitalpos_get,
       .set      = linuxdvb_satconf_class_orbitalpos_set,
     },
+    {
+      .type     = PT_BOOL,
+      .id       = "switch_rotor",
+      .name     = N_("Switch before rotor"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_switch_rotor),
+      .opts     = PO_ADVANCED,
+    },
+    {
+      .type     = PT_U32,
+      .id       = "max_rotor_move",
+      .name     = N_("Rotor initialization time (seconds)"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_max_rotor_move),
+      .opts     = PO_ADVANCED,
+      .def.u32  = 120
+    },
+    {
+      .type     = PT_U32,
+      .id       = "min_rotor_move",
+      .name     = N_("Minimum rotor time (seconds)"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_min_rotor_move),
+      .opts     = PO_ADVANCED,
+    },
+    {
+      .type     = PT_DBL,
+      .id       = "site_lat",
+      .name     = N_("Site latitude"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_site_lat),
+      .opts     = PO_ADVANCED,
+    },
+    {
+      .type     = PT_DBL,
+      .id       = "site_lon",
+      .name     = N_("Site longitude"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_site_lon),
+      .opts     = PO_ADVANCED,
+    },
+    {
+      .type     = PT_BOOL,
+      .id       = "site_lat_south",
+      .name     = N_("Southern hemisphere (latitude direction)"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_site_lat_south),
+      .opts     = PO_ADVANCED,
+      .def.i    = 0
+    },
+    {
+      .type     = PT_BOOL,
+      .id       = "site_lon_west",
+      .name     = N_("Western hemisphere (latitude direction)"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_site_lon_west),
+      .opts     = PO_ADVANCED,
+      .def.i    = 0
+    },
+    {
+      .type     = PT_INT,
+      .id       = "site_altitude",
+      .name     = N_("Altitude (meters)"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_site_altitude),
+      .opts     = PO_ADVANCED,
+      .def.i    = 0
+    },
+    {
+      .type     = PT_U32,
+      .id       = "motor_rate",
+      .name     = N_("Motor rate (milliseconds/deg)"),
+      .off      = offsetof(linuxdvb_satconf_t, ls_motor_rate),
+    },
     {}
   }
 };